Skip to content

Files

Latest commit

 

History

History
79 lines (55 loc) · 1.17 KB

isAscii.adoc

File metadata and controls

79 lines (55 loc) · 1.17 KB
title categories subCategories
isAscii()
Functions
Characters

isAscii(thisChar)

Description

Analyse if a char is Ascii. Returns true if thisChar contains an Ascii character.

Syntax

isAscii(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is Ascii.

Example Code

if (isAscii(myChar)) {  // tests if myChar is an Ascii character
  Serial.println("The character is Ascii");
}
else {
  Serial.println("The character is not Ascii");
}

See also