git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/include/ctype.h

      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 */
     13 bool 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 */
     18 bool 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 */
     23 bool 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 */
     28 bool 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 */
     33 bool 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 */
     38 char 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 */
     43 char tolower(char c);
     44 
     45 #endif /* _CTYPE_H */

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.