So I'm trying to teach myself some ADT concepts. So I have created 3 files
- a main.c
- a prototypes.h and
- a functions.c
The problem I have is that I'm not sure how I would define the function in the prototypes. I tried typedef
, but that for data types rather than functions. I know I have to use the preprocessor #define
method.
But I'm not sure how to go about defining (#define) a new type for a function.
Is it: #define fileRead() = FREAD
Thanks