Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
isblank.c File Reference
#include <ctype.h>
Include dependency graph for isblank.c:

Go to the source code of this file.

Functions

int isblank (int c)
 Checks if the given character is a blank character. More...
 

Function Documentation

◆ isblank()

int isblank ( int  ch)

Checks if the given character is a blank character.

Checks if the given character is a blank character using the default locale. The following characters classified as blank:

  • space (0x20)
  • horizontal tab (0x09)

The behavior is undefined if the value of ch is not representable as unsigned char and is not equal to EOF.

Parameters
chThe character to classify
Returns
Non-zero value if the character is a blank character, zero otherwise.

Definition at line 5 of file isblank.c.

6 {
7  return (c == ' ' || c == '\t');
8 }

Referenced by iswblank().

Here is the caller graph for this function: