Download CodeVisionAVR User Manual
Transcript
CodeVisionAVR
4. Library Functions Reference
You must #include the appropriate header files for the library functions that you use in your program.
Example:
/* Header files are included before using the functions */
#include <math.h> // for abs
#include <stdio.h> // for putsf
void main(void) {
int a,b;
a=-99;
/* Here you actually use the functions */
b=abs(a);
putsf("Hello world");
}
© 1998-2008 HP InfoTech S.R.L.
Page 116