This page is also available in 2 other languages
Change language 

isPrintable()

[Characters]

Description

Analyse if a char is printable (that is any character that produces an output, even a blank space). Returns true if thisChar is printable.

Syntax

isPrintable(thisChar)

Parameters

thisChar: variable. Allowed data types: char.

Returns

true: if thisChar is printable.

Example Code

if (isPrintable(myChar)) {  // tests if myChar is printable char
  Serial.println("The character is printable");
}
else {
  Serial.println("The character is not printable");
}

See also