How to make a .h file?

Discussion in 'Software' started by TR15220, Dec 9, 2003.

  1. TR15220

    TR15220 Private First Class

    I have some code I'd like to use by having an include statement using Borland C++. It is just C code not C++.

    How do I do this?
    Can you just copy the .c file to a .h extension?
    Are there any Environment Variables I need to set to find the .h file or it there a specific directory it should be in to work?

    Thanks in advance for any help!!!!!
     
  2. Vlad902

    Vlad902 Guest

    It should, make sure to still specify #include files that you need at the top too, ie. sys/types.h or whatever you need, make sure you don't have name collisions with other functions (or main() :)), You may also want to add function prototypes at the top of the file to make sure you're functions are not accidentaly being passed the wrong arguments.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds