![]() |
ifi_utilities.c
Salute to all C programmers and wizards out there,
I have a question about the EDU-RC default code. Ifi_utilities.c seems to contain "useful" functions which we can call in our code. This behavior seems similar to that of a library or header file. If I am right in thinking so, why isn't it a header file? Or if I am wrong, could somebody please inform me as to where I am wrong. :] |
It's really just the way most C programs are structured. Since it's a library, it's a .C file. Header files are usually used for prototyping functions, declaring GLOBAL variables and constants, and including/requiring the needed source files.
It's not mandatory that the code be in a .C file (I think...), but it's just the standard way to do things... |
Re: ifi_utilities.c
Quote:
Quote:
Code:
void Wait4TXEmpty(void);Code:
void PrintByte(unsigned char odata)Sorry if I oversimplified it, but maybe this will help other people understand the difference a little better too... |
| All times are GMT -5. The time now is 00:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi