Gets, Isalnum, Isalpha – Zilog EZ80F916 User Manual
Page 363: Gets isalnum

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
343
gets
Reads characters from the input stream into the array pointed to by
s
, until end-of-file is
encountered or a new-line character is read. The new-line character is discarded, and a null
character is written immediately after the last character read into the array.
Synopsis
#include
char *gets(char *s);
Returns
The value of
s
, if successful. If a read error occurs during the operation, the array contents
are indeterminate, and a null pointer is returned.
Example
char *r;
char buf [80];
r=gets(buf);
if (r==NULL)
/*No input*/
NOTE: This function makes a call to hardware-specific functions to get data from 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.
isalnum
Tests for any character for which
isalpha
or
isdigit
is true.
Synopsis
include
int isalnum(int c);
Example
int r;
char c='a';
r=isalnum(c);
isalpha
Tests for any character for which
isupper
or
islower
is true.
Synopsis
#include
int isalpha(int c);