-

Changes

Jump to: navigation, search

Functions HI-TECH C ISALNUM

1,018 bytes added, 22:05, 31 July 2017
Created page with "<strong>ISALNUM, ISALPHA, ISDIGIT, ISLOWER et. al.</strong> ==SYNOPSIS== #include <ctype.h> isalnum(char c) isalpha(char c) isascii(char c) iscntrl(char c) isdigit(ch..."
<strong>ISALNUM, ISALPHA, ISDIGIT, ISLOWER et. al.</strong>
==SYNOPSIS==

#include <ctype.h>

isalnum(char c)
isalpha(char c)
isascii(char c)
iscntrl(char c)
isdigit(char c)
islower(char c)
isprint(char c)
isgraph(char c)
ispunct(char c)
isspace(char c)
isupper(char c)
char c;


==DESCRIPTION==
These macros, defined in ctype.h, test the supplied
character for membership in one of several overlapping
groups of characters. Note that all except isascii are
defined for <strong>c</strong> if <strong>isascii(c)</strong> is true.

;isalnum(c)
:c is alphanumeric
;isalpha(c)
:c is in A-Z or a-z
;isascii(c)
:c is a 7 bit ascii character
;iscntrl(c)
:c is a control character
;isdigit(c)
:c is a decimal digit
;islower(c)
:c is in a-z
;isprint(c)
:c is a printing char
;isgraph(c)
:c is a non-space printable character
;ispunct(c)
:c is not alphanumeric
;isspace(c)
:c is a space, tab or newline
;isupper(c)
:c is in A-Z
;isxdigit(c)
:c is in 0-9 or a-f or A-F

==SEE ALSO==

toupper, tolower, toascii

Navigation menu