Copyright 2004 by M. Uli Kusterer Tue, 30 Nov -1901 08:00:00 GMT Comments on article book10 at Zathras.de http://www.zathras.de/angelweb/book10.htm book10 Comments witness_dot_of_dot_teachtext_at_gmx_dot_net (M. Uli Kusterer) witness_dot_of_dot_teachtext_at_gmx_dot_net (M. Uli Kusterer) en-us Comment 3 by Uli Kusterer http://masters-of-the-void.com/book10.htm#comment3 http://masters-of-the-void.com/book10.htm#comment3 Uli Kusterer writes:
Cnewbie, there's not much to a header file. It is just another text file that you create using the "New File" menu item in Xcode. The only difference is that you use a ".h" suffix instead of a ".c" suffix. Then you just write your struct definitions, typedefs, #defines, enums or prototypes into that file. From then on, you can use #include to pull in the stuff in that ".h" file into another file, usually a .c file, but you can also use that in another .h file if needed.
Comment 2 by Cnewbie http://masters-of-the-void.com/book10.htm#comment2 http://masters-of-the-void.com/book10.htm#comment2 hmmm. I don't understand the header part. Could you get an example or something? like how to create .h files?
Comment 1 by Uli K. http://masters-of-the-void.com/book10.htm#comment1 http://masters-of-the-void.com/book10.htm#comment1 Commenting a bit, if I may.