OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" License.
24 .\"
25 .\" Added BUGS section, aeb, 950919
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH TOASCII 3 2009\-03\-15 GNU "Linux Programmer's Manual"
33 .SH 名前
34 toascii \- 文字を ASCII に変換する
35 .SH 書式
36 .nf
37 \fB#include <ctype.h>\fP
38 .sp
39 \fBint toascii(int \fP\fIc\fP\fB);\fP
40 .fi
41 .sp
42 .in -4n
43 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
44 .in
45 .sp
46 \fBtoascii\fP(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
47 .SH 説明
48 \fBtoascii\fP()  は上位ビットをクリアする事により、 ASCII 文字セットに適合するように \fIc\fP を 7ビットの \fIunsigned
49 char\fP に変換する。
50 .SH 返り値
51 変換された文字を返す。
52 .SH 準拠
53 SVr4, BSD, POSIX.1\-2001.  POSIX.1\-2008 は \fBtoascii\fP()  を廃止予定としている。
54 ローカライズされたアプリケーションでは、移植性を確保しつつ、 この関数を使用することはできない点に注意すること。
55 .SH バグ
56 この関数を使う事でたくさんの人々が不幸になるだろう。 この関数はアクセント付きの字をでたらめな文字に変換してしまう。
57 .SH 関連項目
58 \fBisascii\fP(3), \fBtolower\fP(3), \fBtoupper\fP(3)