C Complete Library Function References

The C standard library also known as libc which allows you to write complex code by using the simple function declaration with including the corresponding library header file. C standard library is very helpful when you will be live in writing software programs in C at a rapid speed.

The general and as usual concept is implemented in the library function, so you need not write the entire program for a specific task you want to do.

But you have to make sure the function you are using in your program, the corresponding header file must be included at the top of the code with the #include syntax, similar as we include the <stdio.h> header file.

For example, if we want to square root of a number, we can just use the sqrt(num) function to do this task in a single expression. But you have to ensure from which library you are using functions.

In the case of sqrt(num) function, it is the function of the math.h header file. So to use this function you must have to include the header file at the top of your code using #include <stdio.h> expression.

C Complete Library Function Tutorial

C standard library functions are machine and operating system independent. Because these functions are globally recognized and specified in ANSI C. So you need not worry about that the functions you will use, that will support or not.

In this series of tutorials, we will learn all the standard library, their functions, type definitions, and macros. Currently, there are a total of 29 standard libraries available under the ANSI C standard.

Header Description
<assert.h> It contains the only assert macros for debugging c source code. The assert library does not contain any function.
<complex.h> It contains some function for handling complex numbers
<ctype.h> This header file contains a set of functions for character operations
<errno.h> It contains only one macro that is used to test error reported by library functions
<fenv.h> This library contains some function for accessing floating-point number environment
<float.h> It contains some macros for specifying the properties of floating-point numbers
<inttypes.h> Used for width-integer types
<iso464.h> This library contains some macros for specifiying some operator in alternative way
<limits.h> Used to operate the properties of integer values
<locale.h> Defines localization function like local date format, local currency format
<math.h> Defines common mathematical operations
<setjmp.h> Used to handle non-local exits
<signal.h> Used to operate signal processing functions
<stdalign.h> Defines functions for alignment of objects
<stdarg.h> Functions for accessing the arguments that passed to other functions
<stdatomic.h> Handles atomic operations
<stdbool.h> Defines boolean functions
<stddef.h> Defines useful types and macros
<stdint.h> Exact-integer width type
<stdio.h> defines he C programming core input and output
<stdlib.h> defines numeric conversation, memory allocation
<stdnoreturn.h> Operates not-returing functions
<string.h> Handles string
<tgmath.h> Build for typ-generic mathematical functions
<threads.h> Functions for managing multiple threads
<time.h> Handles date and times
<uchar.h> Manipulates unicode characters
<wchar.h> Functions for wide-string handling
<wctype.h> Functions for wide-charecter handling