Topics

C

About this topic: Articles tagged __TAG__

Showing 160 articles

Topics

Articles

Showing 160 articles

How-tos How to Print to Stderr in C This article introduces how to print to stderr in C. How-tos How to Get Size of a Pointer in C Learn how sizeof measures a pointer object in C and how that differs from the pointed-to object and an allocation. How-tos How to Use the Feof() Function in C This article demonstrates how to use the feof function in C. How-tos How to Find System Hostname in C Retrieve the current system hostname in C with POSIX gethostname(), or read its node name with uname(). Learn how to check errors and choose a suitable buffer. How-tos How to Use Atomic Types in C This article introduces how to use atomic types in C How-tos How to Convert a String to Integer in C This article introduces different methods in C to convert a string into an integer How-tos How to Sort Function in C This article demonstrates how to use standard library sort function in C How-tos How to Create a New Directory in C Learn to create directories in C with mkdir, choose effective permission bits, handle existing paths and other errors, and use mkdirat for directory-relative creation. How-tos The Forward Declaration and Difference Between Struct and Typedef Struct in C This short article discusses the difference between struct and the typedef struct. It further elaborates the concept of forward declaration in C. How-tos How to Use the mmap Function to Write to the Memory in C Learn how mmap() maps memory in C, how to choose its arguments, and how to write to anonymous memory. How-tos How to Use the sched_setaffinity Function in C This article demonstrates how to use sched_setaffinity function in C How-tos How to Clear Char Array in C This article demonstrates how to clear char array in C. How-tos Regular Expressions in C In this article, we'll talk about regular expressions in C. How-tos Difference Between Unsigned Int and Signed Int in C The following article will explore the distinctions between signed and unsigned int in the C programming language. How-tos Exponents in C This article introduces how to use exponentiation functions in C, focusing on the `pow()` function and custom implementations. Learn to calculate positive and negative exponents … How-tos The dup2 Function in C Learn how dup2 duplicates file descriptors in C, redirects standard input and output, differs from dup, and how to handle errors and descriptor lifetimes. How-tos How to Use the waitpid Function in C This article introduces how to use waitpid function in C How-tos How to Use the gettimeofday Function in C Learn how to measure elapsed and CPU time in C with gettimeofday, clock_gettime, and clock. How-tos How to Use File Redirection in C Learn how to use the shell operators <, >, and >> to redirect a C program's standard input and output. See how shell redirection differs from C stream operations such as fopen and … How-tos How to Implement Dictionary in C This article introduces how to implement dictionary in C How-tos How to Print Numbers in Scientific Notation in C This article introduces how to print numbers in scientific notation in C. How-tos For Each Loop in C Explore the capabilities of the C programming language regarding the foreach loop. This article discusses C's lack of a built-in foreach loop and presents alternative methods for … How-tos File Descriptor in C This article explains about the file descriptor in C Programming Language. How-tos How to Get the Size of Array in C This tutorial introduces methods in C to determine the size of an array. Learn how to effectively use the sizeof() operator and explore alternative methods like macros and …

← All topics