Skip to content

Files

Latest commit

2307327 · Feb 21, 2019

History

History
79 lines (55 loc) · 1.26 KB

isGraph.adoc

File metadata and controls

79 lines (55 loc) · 1.26 KB
title categories subCategories
isGraph()
Functions
Characters

isGraph(thisChar)

Description

Analyse if a char is printable with some content (space is printable but has no content). Returns true if thisChar is printable.

Syntax

isGraph(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is printable.

Example Code

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");
}

See also