Standard Library of C Functions
·
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.
·
These header files are needed to
include in program to make use of the library functions defined in such header
files.
·
For example,
o To
use the library functions such as printf()/scanf(), stdio.h is needed to include in program. Stdio.h is a header file that contains all the library
functions regarding standard input/output.
The list of mostly used header files is given in the following
table.
|
SN |
Header file |
Description |
|
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 |
math.h |
This header file
contains all the math operations related functions like sqrt(),
pow(), etc. |
|
5 |
ctype.h |
This header file contains all character handling functions. |