annotate docs/ccguide/isalpha.refentry @ 3140:03b580a02945

Allow CoCo3FPGA-specific build of superdesc.asm Added new conditional CC3FPGA and code to "level1/modules/superdesc.asm" to reflect changes needed to build the new SD card descriptors for the Coco3FPGA.
author Bill Pierce <merlinious999@gmail.com>
date Sat, 04 Feb 2017 11:06:26 +0100
parents 94ff9d15614f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <refentry id="isalpha">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
570
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
3 <refname>Isalpha</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
4 <refname>Isupper</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
5 <refname>Islower</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
6 <refname>Isdigit</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
7 <refname>Isalnum</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
8 <refname>Isspace</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
9 <refname>Ispunct</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
10 <refname>Isprint</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
11 <refname>Iscntrl</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
12 <refname>Isascii</refname>
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
13 <refpurpose>character classification</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
15
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17 <funcsynopsis>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
18 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
19 #include &lt;ctype.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
20 </funcsynopsisinfo>
570
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
21
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
22 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
23 <funcdef><function>isalpha</function></funcdef>
570
253b6096ee01 All function prototypes are added.
roug
parents: 468
diff changeset
24 <paramdef>int <parameter>c</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
25 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
26 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
27
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
29
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
30 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
31 <para>
601
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
32 These functions use table look-up to classify characters
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
33 according to their ascii value. The header file defines them
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
34 as macros which means that they are implemented as fast, inline
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
35 code rather than subroutines.
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
36 </para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
37 <para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
38 Each results in non-zero for true or zero for false.
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
39 </para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
40 <para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
41 The correct value is guaranteed for all integer values in
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
42 isascii, but the result is unpredictable in the others if the
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
43 argument is outside the range -1 to 127.
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
44 </para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
45 <para>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
46 The truth tested by each function is a follows:
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
47 </para>
601
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
48 <informaltable frame="none">
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
49 <tgroup cols="2">
636
94ff9d15614f Convert to Docbook XML format
roug
parents: 601
diff changeset
50 <colspec colwidth="1in"/>
94ff9d15614f Convert to Docbook XML format
roug
parents: 601
diff changeset
51 <colspec colwidth="3in"/>
601
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
52 <tbody>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
53 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
54 <entry>isalpha</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
55 <entry>c is a letter</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
56 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
57 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
58 <entry>isdigit</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
59 <entry>c is a digit</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
60 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
61 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
62 <entry>isupper</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
63 <entry>c is an upper case letter</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
64 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
65 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
66 <entry>islower</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
67 <entry>c is a lower case letter</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
68 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
69 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
70 <entry>isalnum</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
71 <entry>c is a letter or a digit</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
72 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
73 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
74 <entry>isspace</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
75 <entry>c is a space, tab character, newline, carriage return or formfeed</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
76 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
77 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
78 <entry>iscntrl</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
79 <entry>c is a control character (0 to 32) or DEL (127)</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
80 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
81 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
82 <entry>ispunct</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
83 <entry>c is neither countrol nor alpha-numeric</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
84 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
85 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
86 <entry>isprint</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
87 <entry>c is printable (32 to 126)</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
88 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
89 <row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
90 <entry>isascii</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
91 <entry>c is in the range -1 to 127</entry>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
92 </row>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
93 </tbody>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
94 </tgroup>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
95 </informaltable>
8b8736b66631 All refentries finished.
roug
parents: 570
diff changeset
96
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
97 </refsect1>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
98 </refentry>