can anyone tell me what is including a header for? for example:
#include <ezusb.h>
#include <ezregs.h>
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.Originally posted by cprogrammer2003
can anyone tell me what is including a header for? for example:
#include <ezusb.h>
#include <ezregs.h>
For example, if you want standard C string functions, you include string.h.
Quzah.
Hope is the first step on the road to disappointment.