C51: USING LIBRARY FUNCTIONS
How do I use the library functions (putchar, _getkey, calloc, free, init_mempool, malloc and realloc) in my project?
The relevent source files for the library functions are located in the \lib folder inside the C51 installation.
First, the relevent source file must be included in the project. This is done by editing the project and adding the source file.
Second, the function prototype must be added to your source code with the extern keyword. This must be performed for each source file for which you wish to use the function. For example:
extern char _getkey();
The function may then be called.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Friday, July 15, 2005
of your data.