Thread: what are headers for?

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    19

    what are headers for?

    can anyone tell me what is including a header for? for example:
    #include <ezusb.h>
    #include <ezregs.h>

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: what are headers for?

    Originally posted by cprogrammer2003
    can anyone tell me what is including a header for? for example:
    #include <ezusb.h>
    #include <ezregs.h>
    These are extremely basic C questions. Grab a C book. Are you sure you should really be trying to program hardware, since you don't know what a header file or a define statement does? You include header files if you want access to functions / methods / etc defined in other files.

    For example, if you want standard C string functions, you include string.h.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 06-18-2005, 02:26 PM
  2. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  3. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM