Library functions are the inbuilt function in C that are grouped and placed at a common place called the library. Such functions are used to perform some specific operations.
For example, printf is a library function used to print on the console. The library functions are created by the designers of compilers. All C standard library functions are defined inside the different header files saved with the extension .h. We need to include these header files in our program to make use of the library functions defined in such header files.
For example, To use the library functions such as printf/scanf we need to include stdio.h in our program which is a header file that contains all the library functions regarding standard input/output.
The list of mostly used header files :
1) stdio.h: This is a standard input/output header file. It contains all the library functions regarding standard input/output.
2)conio.h:This is a console input/output header file.
3)string.h:It contains all string related library functions like gets(), puts(),etc.
4)stdlib.h:This header file contains all the general library functions like malloc(), calloc(), exit(), etc.
5)math.h:This header file contains all the math operations related functions like sqrt(), pow(), etc.
6)time.h: This header file contains all the time-related functions.
7)ctype.h: This header file contains all character handling functions.
8)stdarg.h: Variable argument functions are defined in this header file.
9)signal.h: All the signal handling functions are defined in this header file.
10)setjmp.h:This file contains all the jump functions.
11)locale.h:This file contains locale functions.
12)errno.h:This file contains error handling functions.
13)assert.h:This file contains diagnostics functions.
0 comments:
Post a Comment