English
Language : 

CC78K0S Datasheet, PDF (210/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
4-10 puts
I/O Functions
FUNCTION
puts outputs a character string.
HEADER
stdio.h
FUNCTION PROTOTYPE
int puts(const char *s);
Function
puts
Arguments
s ...Pointer to an output
character string
Return Value
Normal ... 0
When putchar function
returns –1 ... –1
EXPLANATION
• Writes the character string indicated by s using the putchar function, a line feed character is added at the
end of the output.
• Writing of the null character at the end of the character string is not performed.
• When the return value is normal, 0 is returned, and when the putchar function returns –1, –1 is returned.
210
User’s Manual U14872EJ1V0UM