isspace

Tests for a whitespace character.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <ctype.h> 
   
  int isspace (
     int   c);
  

Parameters

c

(IN) Specifies the character to be tested.

Return Values

Returns a nonzero value when the argument is one of the indicated whitespace characters. Otherwise, it returns zero.

Remarks

The isspace function tests for the following whitespace characters:

` ’

Space

\f

Form feed

\n

New line or line feed

\r

Carriage return

\t

Horizontal tab

\v

Vertical tab

See Also