Practical solutions

C Howtos How-To Guides

Solve the problem. Keep building. Collection of C how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Check if a File Exists in CThis tutorial introduces the best way to check if a file exists in C. This tutorial describes the access function, the stat function, and the fopen function in C. How to Compare Char in CThis tutorial introduces different ways to compare char variables in C. How to Print Char Array in CThis article introduces how to print char array in C. How to Initialize a Struct in CThis article introduces how to initialize a struct in C using various methods. How to Generate Random Number in CThis article demonstrates how to generate random number in C How to Concatenate Strings in CThis article demonstrates how to use concatenate string literals in C How to Use Pointer Ampersand Notation in CThis article introduces how to use the pointer ampersand notation in C. How to Use a Timer in CThis article introduces how to use a timer in C it Masking in CThis article introduces how to use bit masking in C. How to Initialize Char Array in CThis article introduces how to initialize char array in C How to Get Current Working Directory in CThis article demonstrates how to get current working directory in C How to Use the getchar Function in CThis article introduces how to use the getchar function in C How to Use the exit Function in CThis article introduces how to use the exit function in C How to Trim a String in CThis article demonstrates how to trim a string in C. How to Return a Struct From Function in CThis article introduces how to return a struct from function in C. How to open vs fopen in CThis article introduces how to use open vs fopen functions in C How to Copy Char Array in CThis article introduces how to copy char array in C How to Use the opendir Function in CThis article demonstrates how to use opendir function in C How to Use Mutex Lock in CThis article demonstrates how to use mutex lock in C How to Read Binary File in CThis article introduces how to read a binary file in C How to Implement Swap Function in CThis article demonstrates how to implement the swap function in C How to Get Thread ID in CThis article introduces how to get thread ID in C How to Access Environment Variables Using setenv Function in CThis article demonstrates how to export environment variables using setenv function in C How to Use the crypt Function in CThis article demonstrates how to use the crypt function in C