Link to home
Start Free TrialLog in
Avatar of ekohartono
ekohartono

asked on

how to make something.h

May be some body can tell me where in the web that  I can find a complete bank something.h (In C for #include *****.h) And a explaination for every function in it.
AND how to make something.h


Thank YOu Very Much
Avatar of Grailman
Grailman

Not quite sure what you want. Do you want to find pre-written headers,  write some yourself or ...?
Avatar of ekohartono

ASKER

to Mr Grailman
In c/c++ programming first text you write is
#include stdio.h ,conio.h,math.h,windows.h
ect
I still do not understand what you want? Are you trying to find stdio.h, conio.h, math.h etc. and a listing of the functions in that file?
To Mr Grailman

YEs I trying to find listing function whole ****.h
And I need to know how to make it myself..

I hope you understand

Thank YOu
You're talking about two different things then.

The header files for the standard library (any header files for that matter) are just text files which let your program know (compile) how a particular function is to be used. Stdio.h has:

      int puts(const char *);

in it indicating the function takes a const pointer of type char and returns an int type. If you change the stdio header file to have this:

      int puts(const char);

it may compile in your code (if your code uses puts() and gives it a char rather than a char pointer) but it will not link because the binary file which was compiled for the stdio header file requires the pointer, not the char.


Now you can write your own header and source files all you want. If I write a header file like:

      #include "stdio.h"
      int puts(char ch);

Then just write a source file for the implementation of the header.


I would suggest checking out one of the MANY online tutorials to learn more about C/C++ programming.
Thank You Mr.Grailman

BUT my question is where (in the web)i can find complete database about something.h and have explanation about every something.h
ASKER CERTIFIED SOLUTION
Avatar of Grailman
Grailman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial