Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C Programming on the Mac L30 - Creating header files

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,706
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 12, 2010

How to create your own header files

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (AppleProgramming)

  • But where do you actually define the function. Is it in the header file that you put in what should be in the function or the main.

  • @chevon1920 You define the names and parameters of your function in the header file. Your actual implementation of how the method works would be in a .c file which includes this header file.

  • Why do we need function prototypes anyway?

  • @RMH1565 If you look in the comments of the functions tutorial this will probably answer your question.

  • @AppleProgramming

    How to add functions in the main files from the header files. I mean you created the function definition but what about the body part of the function where do you define it......

  • @tuhinbhatt1 You can define it either in a new C file or the same file (main.c) that the main method is in.

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • @AppleProgramming

    Ohhh, so the header file just has the declaration of the function and the .c file has a declaration and the actual function. ok Thanks so much!

  • @AppleProgramming Thanks Buddy... Your series are awesome!!!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more