OSDN Git Service

9a4abd25d7643856734fbe3593abae45bbb32ff3
[linuxjm/LDP_man-pages.git] / release / man3 / toascii.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" Copyright (c) 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
3 .\"
4 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
5 .\"     all rights reserved.
6 .\" Translated Tue Dec 16 19:43:29 JST 1997
7 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
8 .\"
9 .\" Permission is granted to make and distribute verbatim copies of this
10 .\" manual provided the copyright notice and this permission notice are
11 .\" preserved on all copies.
12 .\"
13 .\" Permission is granted to copy and distribute modified versions of this
14 .\" manual under the conditions for verbatim copying, provided that the
15 .\" entire resulting derived work is distributed under the terms of a
16 .\" permission notice identical to this one.
17 .\"
18 .\" Since the Linux kernel and libraries are constantly changing, this
19 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
20 .\" responsibility for errors or omissions, or for damages resulting from
21 .\" the use of the information contained herein.  The author(s) may not
22 .\" have taken the same level of care in the production of this manual,
23 .\" which is licensed free of charge, as they might when working
24 .\" professionally.
25 .\"
26 .\" Formatted or processed versions of this manual, if unaccompanied by
27 .\" the source, must acknowledge the copyright and authors of this work.
28 .\" License.
29 .\"
30 .\" Added BUGS section, aeb, 950919
31 .\"
32 .TH TOASCII 3 2009-03-15 "GNU" "Linux Programmer's Manual"
33 .SH 名前
34 toascii \- 文字を ASCII に変換する
35 .SH 書式
36 .nf
37 .B #include <ctype.h>
38 .sp
39 .BI "int toascii(int " "c" );
40 .fi
41 .sp
42 .in -4n
43 glibc 向けの機能検査マクロの要件
44 .RB ( feature_test_macros (7)
45 参照):
46 .in
47 .sp
48 .BR toascii ():
49 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
50 .SH 説明
51 .BR toascii ()
52 は上位ビットをクリアする事により、
53 ASCII 文字セットに適合するように \fIc\fP を 7ビットの \fIunsigned char\fP
54 に変換する。
55 .SH 返り値
56 変換された文字を返す。
57 .SH 準拠
58 SVr4, BSD, POSIX.1-2001.
59 POSIX.1-2008 は
60 .BR toascii ()
61 を廃止予定としている。
62 ローカライズされたアプリケーションでは、移植性を確保しつつ、
63 この関数を使用することはできない点に注意すること。
64 .SH バグ
65 この関数を使う事でたくさんの人々が不幸になるだろう。
66 この関数はアクセント付きの字をでたらめな文字に変換してしまう。
67 .SH 関連項目
68 .BR isascii (3),
69 .BR tolower (3),
70 .BR toupper (3)