tail head cat sleep
QR code linking to this page

manページ  — ISPUNCT

名称

ispunct – 句読点文字のテスト

内容

ライブラリ

Standard C Library (libc, -lc)

書式


#include <ctype.h>
int
ispunct(int c);

解説

ispunct() 関数は、 空白または isalnum(3) が真である文字を除いた、表示可能文字であるかどうかをテストします。 C の単一の char で表現できるロケール ( multibyte(3) 参照) に対しては、引数の値は unsigned char で表現できるものか値 EOF です。 ASCII 文字集合においては、次の文字が含まれます (それらの数値を 8 進数でも示します):


amp;041 ``!'' 042 `` "'' 043 ``#'' 044 ``$'' 045 ``%''"

amp;046 ``&'' 047 ``''' 050 ``('' 051 ``)'' 052 ``*''

amp;053 ``+'' 054 ``,'' 055 ``-'' 056 ``.'' 057 ``/''

amp;072 ``:'' 073 ``;'' 074 ``<'' 075 ``='' 076 ``>''

amp;077 ``?'' 100 ``@'' 133 ``['' 134 ``\'' 135 ``]''

amp;136 ``^'' 137 ``_'' 140 ```'' 173 ``{'' 174 ``|''

amp;175 ``}'' 176 ``~''

戻り値

ispunct() 関数は、文字テスト結果が偽のとき 0 を返し、 文字テスト結果が真のとき 0 以外を返します。

関連項目

ctype(3), multibyte(3), ascii(7)

規格

ispunct() 関数は ISO/IEC 9899:1990 ("ISO C90") に適合しています。

ISPUNCT (3) June 4, 1993

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.”