Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.38 KB

isPrintable.adoc

File metadata and controls

83 lines (59 loc) · 1.38 KB

title: "isPrintable()" categories: [ "Functions" ] subCategories: [ "Characters" ] ---

isPrintable(thisChar)

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

`isAlpha(thisChar)`

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is printable.

Example Code

if (isPrintable(this))      // tests if this is a letter
{
	Serial.println("The character is printable");
}
else
{
	Serial.println("The character is not printable");
}

See also