Skip to content

Files

79 lines (55 loc) · 1.32 KB

isSpace.adoc

File metadata and controls

79 lines (55 loc) · 1.32 KB
title categories subCategories
isSpace()
Functions
Characters

isSpace(thisChar)

Description

Analyse if a char is a white-space character. Returns true if the argument is a space, form feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), or vertical tab ('\v').

Syntax

isSpace(thisChar)

Parameters

thisChar: variable. Allowed data types: char

Returns

true: if thisChar is a white-space character.

Example Code

if (isSpace(myChar)) {  // tests if myChar is a white-space character
  Serial.println("The character is white-space");
}
else {
  Serial.println("The character is not white-space");
}

See also