English
Language : 

CC78K0S Datasheet, PDF (203/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
4-3 printf (normal model only)
I/O Functions
FUNCTION
printf outputs data to SFR according to the format.
HEADER
stdio.h
FUNCTION PROTOTYPE
int printf(const char *format, ...);
Function
printf
Arguments
format ...Pointer to the
character string that indicates
the output conversion
specification
... ... 0 or more arguments to
be converted
Return Value
Number of character output to
s (the null character at the end
is not counted)
EXPLANATION
• (0 or more) arguments following the format are converted and output using the putchar function, according to
the output conversion specification specified in the format.
• The output conversion specification is 0 or more directives. Normal characters (other than the conversion
specification starting with %) are output as is using the putchar function. The conversion specification is
output using the putchar function by fetching and converting the following (0 or more) arguments.
• Each conversion specification is the same as that of the sprintf function.
User’s Manual U14872EJ1V0UM
203