Loose-Info.com
Last Update 2012/07/05
TOP - C言語 - ctype.h - islower()

引数で与えられる文字のテストを行います。
引数がASCII文字のアルファベット(小文字)の場合は真となります。

 戻り値1  = islower(  引数1  )

戻り値1 :
int
引数1をテストした結果が真 : 0以外
引数1をテストした結果が偽 : 0
引数1 :
int
テストの対象となるASCII文字

(例)
#include <stdio.h> #include <ctype.h> int main () { int c; printf("islower()結果\n"); for (c=0x30; c<0x80; c=c+4) { if (islower(c)) { printf("「%c」は真\n", c); } else { printf("「%c」は偽\n", c); } } return 0; }

実行結果
islower()結果 「0」は偽 「4」は偽 「8」は偽 「<」は偽 「@」は偽 「D」は偽 「H」は偽 「L」は偽 「P」は偽 「T」は偽 「X」は偽 「\」は偽 「`」は偽 「d」は真 「h」は真 「l」は真 「p」は真 「t」は真 「x」は真 「|」は偽