xref: /original-bsd/lib/libc/locale/isupper.3 (revision ba762ddc)
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)isupper.3	5.1 (Berkeley) 05/02/91
7.\"
8.Dd
9.Dt ISUPPER 3
10.Os
11.Sh NAME
12.Nm isupper
13.Nd upper-case character test
14.Sh SYNOPSIS
15.Fd #include <ctype.h>
16.Ft int
17.Fn supper "int c"
18.Sh DESCRIPTION
19The
20.Fn isupper
21function tests for any upper-case letter or any of an
22implementation-defined set of characters for which none of
23.Xr iscntrl 3 ,
24.Xr isdigit 3 ,
25.Xr ispunct 3 ,
26or
27.Xr isspace 3
28is true.
29In the
30.Em ``C''
31locale,
32.Fn isupper
33returns true only for the characters defined as upper-case letters.
34.Sh RETURN VALUES
35The
36.Fn isupper
37macro returns zero if the character tests false and
38returns non-zero if the character tests true.
39.Sh SEE ALSO
40.Xr isascii 3 ,
41.Xr isalnum 3 ,
42.Xr isalpha 3 ,
43.Xr iscntrl 3 ,
44.Xr isdigit 3 ,
45.Xr isgraph 3 ,
46.Xr islower 3 ,
47.Xr isprint 3 ,
48.Xr ispunct 3 ,
49.Xr isspace 3 ,
50.Xr isxdigit 3 ,
51.Xr toascii 3 ,
52.Xr tolower 3 ,
53.Xr toupper 3 ,
54.Xr stdio 3
55.Xr ascii 7
56.Sh STANDARDS
57The
58.Xr isupper
59function conforms to
60.St -ansiC .
61