Types of header files in C Language

Types of header files in C Language

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:

  1. #include<stdio.h> (Standard input-output header)
    Used to perform input and output operations in C like scanf() and printf().
  2. #include<string.h> (String header)
    Perform string manipulation operations like strlen and strcpy.
  3. #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.
  4. #include<stdlib.h> (Standard library header)
    Perform standard utility functions like dynamic memory allocation, using functions such as malloc() and calloc().
  5. #include<math.h> (Math header )
    Perform mathematical operations like sqrt() and pow(). To obtain the square root and the power of a number respectively.
  6. #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.
  7. #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.
  8. #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.
  9. #include<locale.h> (Localization header)
    Perform localization functions like setlocale() and localeconv(). To set locale and get locale conventions respectively.
  10. #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
  11. #include<setjmp.h> (Jump header) - Perform jump functions.
  12. #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.
  13. #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.
  14. <complex.h> - Complex number arithmetic
  15. <fenv.h> - Floating-point environment
  16. <float.h> - Limits of floating-point types
  17. <inttypes.h> - Format conversion of integer types
  18. <iso646.h> - Alternative operator spellings
  19. <limits.h>- Ranges of integer types
  20. <setjmp.h>- Nonlocal jumps
  21. <signal.h> - Signal handling
  22. <stdalign.h> - alignas and alignof convenience macros
  23. <uchar.h> - UTF-16 and UTF-32 character utilities
  24. <wchar.h> - Extended multibyte and wide character utilities
  25. <wctype.h> - Functions to determine the type contained in wide character data

Comments (03)

Image

Sara Alexander

  • Product Designer, USA || 35 minutes ago

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.

Reply
Image

Robert Morgan

  • Product Designer, USA || 35 minutes ago

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
Image

Rochelle Hunt

  • Product Designer, USA || 35 minutes ago

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

Leave a Comment