ctype.h (1253B)
1/** @file ctype.h 2 Character type functions. 3*/ 4#ifndef _CTYPE_H 5#define _CTYPE_H 6 7#include <types.h> 8#include <stdbool.h> 9 10/** Returns TRUE if the character __c__ is a letter (a-z, A-Z), otherwise FALSE 11 @param c Character to test 12*/ 13bool isalpha(char c); 14 15/** Returns TRUE if the character __c__ is an uppercase letter (A-Z), otherwise FALSE 16 @param c Character to test 17*/ 18bool isupper(char c); 19 20/** Returns TRUE if the character __c__ is a lowercase letter (a-z), otherwise FALSE 21 @param c Character to test 22*/ 23bool islower(char c); 24 25/** Returns TRUE if the character __c__ is a digit (0-9), otherwise FALSE 26 @param c Character to test 27*/ 28bool isdigit(char c); 29 30/** Returns TRUE if the character __c__ is a space (' '), tab (\\t), or newline (\\n) character, otherwise FALSE 31 @param c Character to test 32*/ 33bool isspace(char c); 34 35/** Returns uppercase version of character __c__ if it is a letter (a-z), otherwise it returns the input value unchanged. 36 @param c Character to test 37*/ 38char toupper(char c); 39 40/** Returns lowercase version of character __c__ if it is a letter (A-Z), otherwise it returns the input value unchanged. 41 @param c Character to test 42*/ 43char tolower(char c); 44 45#endif /* _CTYPE_H */