isGraph()

名称

isGraph()

説明

文字が表示可能な文字(空白を除く)であるかを調べる。

書式

inline boolean isGraph(int c);

引数

c調べたい文字。

戻り値

cが文字が表示可能な文字の場合はtrue、そうでない場合はfalse。

使用例

1
2
3
4
5
6
if (isGraph(myChar)) {  // tests if myChar is a printable character but not a blank space.
  Serial.println("The character is printable");
}
else {
  Serial.println("The character is not printable");
}

参照

言語 char

言語 if

言語 while

言語 Serial.read()

訳者註

内部ではisgraph()を呼び出しています。

オリジナルのページ

https://www.arduino.cc/reference/en/language/functions/characters/isgraph/

Last Revision: 2019/02/21

実装の解析

まだ解析していません。

最終更新日

January 4, 2024

inserted by FC2 system