Input/output Page 430: Macro functions
Page 430: Macro functions

Standard Header Files
UM017105-0511
402
Zilog Developer Studio II – ZNEO™
User Manual
Variable Argument List Access Macros and Function
The va_start and va_arg macros described in this section are implemented as macros, not
as real functions. If
#undef
is used to remove a macro definition and obtain access to a
real function, the behavior is undefined.
Functions
Input/Output
The <
stdio.h
> header declares input and output functions.
Macro
Functions
Formatted Input/Output
Character Input/Output
void va_start(va_list ap, parmN);
Sets pointer to beginning of argument list.
type va_arg (va_list ap, type);
Retrieves argument from list.
void va_end(va_list ap);
Resets pointer.
EOF
Expands to a negative integral constant. Returned by functions to indi-
cate end of file.
int printf(const char *format, ...);
Writes formatted data to stdout.
int scanf(const char *format, ...);
Reads formatted data from stdin.
int sprintf(char *s, const char *format, ...);
Writes formatted data to string.
int sscanf(const char *s, const char *format, ...);
Reads formatted data from string.
int vprintf(const char *format, va_list arg);
Writes formatted data to a stdout.
int vsprintf(char *s, const char *format, va_list arg); Writes formatted data to a string.
int getchar(void);
Reads a character from stdin.
char *gets(char *s);
Reads a line from stdin.
int putchar(int c);
Writes a character to stdout.
int puts(const char *s);
Writes a line to stdout.