OSDN Git Service

06672157c5134dd19244e323a8f03456b01d6708
[linuxjm/LDP_man-pages.git] / draft / man3 / toupper.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 17:45:39 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Modified 2000-02-13 by Nicolas Lichtmaier <nick@debian.org>
25 .\"
26 .\" Japanese Version Copyright (c) 1997 Ueyama Rui and HIROFUMI Nishizuka
27 .\"         all rights reserved.
28 .\" Translated Fri Aug 29 19:47:32 JST 1997
29 .\"         by Ueyama Rui <rui@campus.or.jp>
30 .\"         by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
31 .\" Translated Sun Mar 12 21:42:31 JST 2000
32 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\"
34 .TH TOUPPER 3 1993-04-04 "GNU" "Linux Programmer's Manual"
35 .SH 名前
36 toupper, tolower \- 小文字を大文字にする。または大文字を小文字にする。
37 .SH 書式
38 .nf
39 .B #include <ctype.h>
40 .sp
41 .BI "int toupper(int " "c" );
42 .br
43 .BI "int tolower(int " "c" );
44 .fi
45 .SH 説明
46 .BR toupper ()
47 は、
48 .I c
49 が大文字にできる文字であるならば大文字に変換する。
50 .PP
51 .BR tolower ()
52
53 .I c
54 が小文字にできる文字であるならば小文字に変換する。
55 .PP
56 もし
57 .I c
58
59 .I unsigned char
60 の値でないか
61 .B EOF
62 ならば、これらの関数の動作は未定義である。
63 .SH 返り値
64 変換ができれば変換後の文字を返す。できなければ変換前の
65 .I c
66 を返す。
67 .SH 準拠
68 C89, C99, 4.3BSD.
69 .SH バグ
70 なにが大文字でなにが小文字なのかということの詳細は、現在のロケールに
71 依存している。たとえば、デフォルトの
72 .B """C"""
73 ロケールではウムラウトを認識しないため、それらの文字は変換できない。
74 .PP
75 .\" また、英語以外のロケールでは、大文字と小文字が正しく対応しない
76 .\" ことがある。たとえば、ドイツ語のエスツェットなどである。
77 いくつかの非英語ロケールでは、対応する大文字を持たない小文字が存在する。
78 ドイツ語のエスツェットが一つの例である。
79 .SH 関連項目
80 .BR isalpha (3),
81 .BR setlocale (3),
82 .BR towlower (3),
83 .BR towupper (3),
84 .BR locale (7)