ctype.h File Reference

Character types. More...

Go to the source code of this file.

Defines

#define isdigit(c)   ((c) >= '0' && (c) <= '9')
#define islower(c)   ((c) >= 'a' && (c) <= 'z')
#define isupper(c)   ((c) >= 'A' && (c) <= 'Z')

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static unsigned char tolower (unsigned char c)
static unsigned char toupper (unsigned char c)
int isspace (int c)
 Check to see if character is a space.


Detailed Description

Character types.

Definition in file ctype.h.


Define Documentation

#define isdigit (  )     ((c) >= '0' && (c) <= '9')

Definition at line 11 of file ctype.h.

Referenced by gdbstub_from_hex_digit(), getkey(), and is_unreserved_uri_char().

#define islower (  )     ((c) >= 'a' && (c) <= 'z')

Definition at line 12 of file ctype.h.

Referenced by is_unreserved_uri_char(), and toupper().

#define isupper (  )     ((c) >= 'A' && (c) <= 'Z')

Definition at line 13 of file ctype.h.

Referenced by is_unreserved_uri_char(), and tolower().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static unsigned char tolower ( unsigned char  c  )  [inline, static]

Definition at line 15 of file ctype.h.

References isupper.

Referenced by gdbstub_from_hex_digit(), and strnicmp().

00016 {
00017         if (isupper(c))
00018                 c -= 'A'-'a';
00019         return c;
00020 }

static unsigned char toupper ( unsigned char  c  )  [inline, static]

Definition at line 22 of file ctype.h.

References islower.

Referenced by pxe_menu_select().

00023 {
00024         if (islower(c))
00025                 c -= 'a'-'A';
00026         return c;
00027 }

int isspace ( int  c  ) 

Check to see if character is a space.

Parameters:
c Character
Return values:
isspace Character is a space

Definition at line 36 of file ctype.c.

Referenced by script_load(), split_args(), and strtoul().

00036                       {
00037         switch ( c ) {
00038         case ' ' :
00039         case '\f' :
00040         case '\n' :
00041         case '\r' :
00042         case '\t' :
00043         case '\v' :
00044                 return 1;
00045         default:
00046                 return 0;
00047         }
00048 }


Generated on Tue Apr 6 20:01:47 2010 for gPXE by  doxygen 1.5.7.1