toasciiのヘルプ・マニュアル
日本語 英語
toascii --help
man toascii
TOASCII(3) Linux Programmer’s Manual TOASCII(3)
名前
toascii - 文字を ASCII に変換する
書式
#include
int toascii(int c);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
toascii(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
説明
toascii() は上位ビットをクリアする事により、 ASCII 文字セットに適合する
ように c を 7ビットの unsigned char に変換する。
返り値
変換された文字を返す。
準拠
SVr4, BSD, POSIX.1-2001. POSIX.1-2008 は toascii() を廃止予定として い
る 。ローカライズされたアプリケーションでは、移植性を確保しつつ、この関
数を使用することはできない点に注意すること。
バグ
この関数を使う事でたくさんの人々が不幸になるだろう。この関数はアクセ ン
ト付きの字をでたらめな文字に変換してしまう。
関連項目
isascii(3), tolower(3), toupper(3)
GNU 2009-03-15 TOASCII(3)
TOASCII(3) Linux Programmer’s Manual TOASCII(3)
NAME
toascii - convert character to ASCII
SYNOPSIS
#include
int toascii(int c);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
toascii(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
DESCRIPTION
toascii() converts c to a 7-bit unsigned char value that fits into the
ASCII character set, by clearing the high-order bits.
RETURN VALUE
The value returned is that of the converted character.
CONFORMING TO
SVr4, BSD, POSIX.1-2001. POSIX.1-2008 marks toascii() as obsolete,
noting that it cannot be use portably in a localized application.
BUGS
Many people will be unhappy if you use this function. This function
will convert accented letters into random characters.
SEE ALSO
isascii(3), tolower(3), toupper(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2009-03-15 TOASCII(3)