beautypg.com

Ispunct, Isspace, Isupper – Zilog Z8F0130 User Manual

Page 468: Ispunct isspace isupper

background image

Appendix B. C Standard Library

UM013037-1212

444

Zilog Developer Studio II – Z8 Encore!
User Manual

Example

int r;

char c='1';

r=isprint(c);

ispunct

Tests for any printing character except space (' ') or a character for which

isalnum

is true.

Synopsis

#include

int ispunct(int c);

Example

int r;

char c='a';

r=ispunct(c);

isspace

Tests for the following white-space characters: space (' '), form feed ('\f'), new line ('\n'),
carriage return ('\r'), horizontal tab ('\t'), or vertical tab ('\v').

Synopsis

#include

int isspace(int c);

Example

int r;

char c='';

r=isspace(c);

isupper

Tests for any uppercase letter 'A' to 'Z'.

Synopsis

#include

int isupper(int c);