annotate docs/ccguide/toupper.refentry @ 1303:0006715970b5

Optimized, now uses Bt.Track symbolic
author boisy
date Mon, 01 Sep 2003 21:00:11 +0000
parents dc9fb26efbad
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="toupper">
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <refnamediv>
579
dc9fb26efbad All function prototypes are added.
roug
parents: 474
diff changeset
3 <refname>Toupper</refname>
dc9fb26efbad All function prototypes are added.
roug
parents: 474
diff changeset
4 <refname>Tolower</refname>
dc9fb26efbad All function prototypes are added.
roug
parents: 474
diff changeset
5 <refpurpose>character translation</refpurpose>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
6 </refnamediv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
8 <refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
9 <funcsynopsis>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 <funcsynopsisinfo>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 #include &lt;ctype.h&gt;
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
12 </funcsynopsisinfo>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
13 <funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
14 <funcdef><function>toupper</function></funcdef>
474
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
15 <paramdef>int <parameter>c</parameter></paramdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
16 </funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
17 <funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
18 <funcdef><function>tolower</function></funcdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
19 <paramdef>int <parameter>c</parameter></paramdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
20 </funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
21 <funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
22 <funcdef><function>_toupper</function></funcdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
23 <paramdef>int <parameter>c</parameter></paramdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
24 </funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
25 <funcprototype>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
26 <funcdef><function>_tolower</function></funcdef>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
27 <paramdef>int <parameter>c</parameter></paramdef>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
28 </funcprototype>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
29 </funcsynopsis>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
30
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
31 </refsynopsisdiv>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
32
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
33 <refsect1><title>Description</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
34 <para>
474
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
35 The functions toupper and tolower have as their domain the
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
36 integers in the range -1 to 255. Toupper converts lower-case
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
37 to upper-case, and tolower converts upper-case to lower-case.
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
38 All other arguments are returned unchanged.
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
39 </para>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
40 <para>
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
41 The macros _toupper and _tolower do the same things as the
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
42 corresponding functions, but they have restricted domains and
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
43 they are faster. The argument to _toupper must be lower-case,
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
44 and the argument to _tolower must be upper-case. Arguments
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
45 that are outside each macros domain, such as passing a lower-case
31ce96b2dc9d entered: chdir chmod qsort strass toupper tsleep wait
roug
parents: 468
diff changeset
46 to _tolower, yield garbage results.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
47 </para>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
48 </refsect1>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
49 </refentry>