Types of header files in C Language
.png)
Types of header files in C Language
Published On : 2023-01-04
Published By: Prachi Sain
C programming language helps you to save your time by offering you some standard header files which can easily short your long code and make your programming easy.
C programming language offers 25 standard header files (which is supported by default). If the programs are complex and lengthy , they can be modularized into subprograms called functions, a group of this functions make up a header file.
C programming language has 25 standard header files which are as follows:
- #include<stdio.h> (Standard input-output header)
Used to perform input and output operations in C like scanf() and printf(). - #include<string.h> (String header)
Perform string manipulation operations like strlen and strcpy. - #include<conio.h> (Console input-output header)
Perform console input and console output operations like clrscr() to clear the screen and getch() to get the character from the keyboard. - #include<stdlib.h> (Standard library header)
Perform standard utility functions like dynamic memory allocation, using functions such as malloc() and calloc(). - #include<math.h> (Math header )
Perform mathematical operations like sqrt() and pow(). To obtain the square root and the power of a number respectively. - #include<ctype.h>(Character type header)
Perform character type functions like isaplha() and isdigit(). To find whether the given character is an alphabet or a digit respectively. - #include<time.h>(Time header)
Perform functions related to date and time like setdate() and getdate(). To modify the system date and get the CPU time respectively. - #include<assert.h> (Assertion header)
It is used in program assertion functions like assert(). To get an integer data type in C/C++ as a parameter which prints stderr only if the parameter passed is 0. - #include<locale.h> (Localization header)
Perform localization functions like setlocale() and localeconv(). To set locale and get locale conventions respectively. - #include<signal.h> (Signal header)
Perform signal handling functions like signal() and raise(). To install signal handler and to raise the signal in the program respectively - #include<setjmp.h> (Jump header) - Perform jump functions.
- #include<stdarg.h> (Standard argument header)
Perform standard argument functions like va_start and va_arg(). To indicate start of the variable-length argument list and to fetch the arguments from the variable-length argument list in the program respectively. - #include<errno.h> (Error handling header)
Used to perform error handling operations like errno(). To indicate errors in the program by initially assigning the value of this function to 0 and then later changing it to indicate errors. - <complex.h> - Complex number arithmetic
- <fenv.h> - Floating-point environment
- <float.h> - Limits of floating-point types
- <inttypes.h> - Format conversion of integer types
- <iso646.h> - Alternative operator spellings
- <limits.h>- Ranges of integer types
- <setjmp.h>- Nonlocal jumps
- <signal.h> - Signal handling
- <stdalign.h> - alignas and alignof convenience macros
- <uchar.h> - UTF-16 and UTF-32 character utilities
- <wchar.h> - Extended multibyte and wide character utilities
- <wctype.h> - Functions to determine the type contained in wide character data
Comments (03)
Sara Alexander
Lorem Ipsum is simply dummy text of printing and typesetting industry has been industry standard dummy text ever since the galley and scrambe make type specimen book has surived not only five centuries text of the printing and typesetin indus standard dummy since the 1500s, when an unknown printer.
ReplyRobert Morgan
Lorem Ipsum is simply dummy text printing and typesetting industry has been industry standard dummy text ever since and scrambe make type specimen book has surived note only five centuries text of the printing and typesetin standard since the 1500s, when an unknown printer.
ReplyRochelle Hunt
Lorem Ipsum is simply dummy text printing and typesetting industry has been industry standard dummy text ever since and scrambe make type specimen book has surived note only five centuries text of the printing and typesetin standard since the 1500s, when an unknown printer.
Reply