Putchar, Puts, Qsort – Zilog EZ80F916 User Manual
Page 376: Putchar puts qsort

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
356
putchar
Writes a character to the serial port.
Synopsis
#include
int putchar(int c);
Returns
The character written. If a write error occurs,
putchar
returns EOF.
Example
int i;
charc='a';
i=putchar(c);
NOTE: This function makes a call to hardware-specific functions to send data to the
UART. You must either link to ZSL to provide these hardware-specific functions
or provide your own equivalent functions. See “Run-Time Library” on page 154.
puts
Writes the string pointed to by s to the serial port and appends a new-line character to the
output. The terminating null character is not written.
Synopsis
#include
int puts(char *s);
Returns
EOF if an error occurs; otherwise, it is a non-negative value.
Example
int i;
char strp[]="COMPASS";
i=puts(str);
NOTE: This function makes a call to hardware-specific functions to send data to the
UART. You must either link to ZSL to provide these hardware-specific functions
or provide your own equivalent functions. See “Run-Time Library” on page 154.
qsort
Sorts an array of nmemb objects, the initial member of which is pointed to by any base.
The size of each object is specified by size.