Saturday, September 8, 2012

Header Files

"Header file" is a file which contains prototypes or declarations of certain required functions or macros or variables. Functions -those declared in header files- has a benefit that those can be reused,recalled. Because of "Header file concept", programming became easy; otherwise in past, programmer need to write whole code for each function or macro or variables or concepts, each time !!!!!

For example, in C compiler-GCC, prototype of printf(), scanf() functions is declared(written) in stdio.h file. But in FORTRAN language, because of absence of "header files", programmer wrote complete coding of scanning, printing, exiting and all processes -each time.

The C Pre-Processor links those functions to their header files and replaces those functions with their complete prototype. Header files need to included at the starting of C code.
All header files are located in "/usr/include" directory

GCC contain all ANSI  approved header files only. But most of other compilers, create and put their own header files. You can include or install other .h files in GCC. All header files in GCC and Borland TC are given below. Hope they will help you !!!


STANDARD
OR GCC
BORLAND


assert.h
alloc.h
complex.h
bios.h
ctype.h
conio.h
errno.h
dir.h
fenv.h
dirent.h
float.h
dos.h
inttypes.h
fnkeys.h
iso646.h
graphics.h
limits.h
generic.h
locale.h
io.h
math.h
process.h
setjmp.h
share.h
signal.h
sys\stat.h
stdarg.h
TurboC.h
stdbool.h

stddef.h

stdint.h

stdio.h

stdlib.h

string.h

tgmath.h

time.h

wchar.h

wctype.h