isControl()

[Characters]

Description

Analyse if a char is a control character. Returns true if thisChar is a control character.

Syntax

isControl(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is a control character.

Example Code

if (isControl(myChar)) {  // tests if myChar is a control character
  Serial.println("The character is a control character");
}
else {
  Serial.println("The character is not a control character");
}