Files
oldlinux-files/Minix/2.0.0/wwwman/man3/isupper.3.html
2024-02-19 00:21:39 -05:00

120 lines
2.8 KiB
HTML

<HTML>
<HEAD>
<TITLE>ctype(3)</TITLE>
</HEAD>
<BODY>
<H1>ctype(3)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
ctype, isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace,
ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii -
character classification macros
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;ctype.h&gt;</STRONG>
<STRONG>int</STRONG> <STRONG>isalpha(int</STRONG> <EM>c</EM><STRONG>)</STRONG>
<STRONG>...</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
These macros classify characters by table lookup. Each is a predicate
returning nonzero for true, zero for false. <STRONG>Isascii</STRONG> and <STRONG>toascii</STRONG> are
defined on all integer values; the rest are defined only on the range of
<STRONG>unsigned</STRONG> <STRONG>char</STRONG> and on the special value EOF (see <STRONG><A HREF="../man3/stdio.3.html">stdio(3)</A></STRONG>).
<STRONG>isalpha</STRONG> <EM>c</EM> is a letter
<STRONG>isupper</STRONG> <EM>c</EM> is an upper case letter
<STRONG>islower</STRONG> <EM>c</EM> is a lower case letter
<STRONG>isdigit</STRONG> <EM>c</EM> is a digit
<STRONG>isxdigit</STRONG> <EM>c</EM> is a hex digit
<STRONG>isalnum</STRONG> <EM>c</EM> is an alphanumeric character
<STRONG>isspace</STRONG> <EM>c</EM> is a space, tab, carriage return, newline, vertical tab,
or formfeed
<STRONG>ispunct</STRONG> <EM>c</EM> is a punctuation character (neither control nor
alphanumeric)
<STRONG>isprint</STRONG> <EM>c</EM> is a printing character, code <STRONG><A HREF="../man8/040.8.html">040(8)</A></STRONG> (space) through
0176 (tilde)
<STRONG>isgraph</STRONG> <EM>c</EM> is a printing character, similar to <STRONG>isprint</STRONG> except false
for space.
<STRONG>iscntrl</STRONG> <EM>c</EM> is a delete character (0177) or ordinary control
character (less than 040).
<STRONG>isascii</STRONG> <EM>c</EM> is an ASCII character, code less than 0200
<STRONG>tolower</STRONG> <EM>c</EM> is converted to lower case. Return value is undefined
if not <STRONG>isupper</STRONG>(<EM>c</EM>).
<STRONG>toupper</STRONG> <EM>c</EM> is converted to upper case. Return value is undefined
if not <STRONG>islower</STRONG>(<EM>c</EM>).
<STRONG>toascii</STRONG> <EM>c</EM> is converted to be a valid ascii character.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man7/ascii.7.html">ascii(7)</A></STRONG>
</PRE>
</BODY>
</HTML>