tail head cat sleep
QR code linking to this page

manページ  — ISDIGIT

名称

isdigit – 10 進数文字のテスト

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <ctype.h>

int
isdigit(int c);

解説

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


amp;060 ``0'' 061 ``1'' 062 ``2'' 063 ``3'' 064 ``4''

amp;065 ``5'' 066 ``6'' 067 ``7'' 070 ``8'' 071 ``9''

戻り値

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

関連項目

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

規格

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

ISDIGIT (3) June 4, 1993

tail head cat sleep
QR code linking to this page


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

If you have any trouble sounding condescending, find a Unix user to show you how it's done.
— Scott Adams