OSDN Git Service

bad7e462140a19d8a0eacbdd8afc8d8e8f5c0ba6
[linuxjm/LDP_man-pages.git] / draft / 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 .\"O Feature Test Macro Requirements for glibc (see
44 .\"O .BR feature_test_macros (7)):
45 glibc 向けの機能検査マクロの要件
46 .RB ( feature_test_macros (7)
47 参照):
48 .in
49 .sp
50 .BR toascii ():
51 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
52 .SH 説明
53 .BR toascii ()
54 は上位ビットをクリアする事により、
55 ASCII 文字セットに適合するように \fIc\fP を 7ビットの \fIunsigned char\fP
56 に変換する。
57 .SH 返り値
58 変換された文字を返す。
59 .SH 準拠
60 SVr4, BSD, POSIX.1-2001.
61 .\"O POSIX.1-2008 marks
62 .\"O .BR toascii ()
63 .\"O as obsolete,
64 .\"O noting that it cannot be used portably in a localized application.
65 POSIX.1-2008 は
66 .BR toascii ()
67 を廃止予定としている。
68 ローカライズされたアプリケーションでは、移植性を確保しつつ、
69 この関数を使用することはできない点に注意すること。
70 .\"O .SH BUGS
71 .SH バグ
72 .\"O Many people will be unhappy if you use this function.
73 .\"O This function will convert accented letters into random characters.
74 この関数を使う事でたくさんの人々が不幸になるだろう。
75 この関数はアクセント付きの字をでたらめな文字に変換してしまう。
76 .SH 関連項目
77 .BR isascii (3),
78 .BR tolower (3),
79 .BR toupper (3)