GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       <ctype.h>: Character Operations -

   Character classification routines
       These functions perform character classification. They return true or
       false status depending whether the character passed to the function
       falls into the function's classification (i.e. isdigit() returns true
       if its argument is any value '0' though '9', inclusive). If the input
       is not an unsigned char value, all of this function return false.
       int isalnum (int __c)
       int isalpha (int __c)
       int isascii (int __c)
       int isblank (int __c)
       int iscntrl (int __c)
       int isdigit (int __c)
       int isgraph (int __c)
       int islower (int __c)
       int isprint (int __c)
       int ispunct (int __c)
       int isspace (int __c)
       int isupper (int __c)
       int isxdigit (int __c)

   Character convertion routines
       This realization permits all possible values of integer argument. The
       toascii() function clears all highest bits. The tolower() and toupper()
       functions return an input argument as is, if it is not an unsigned char
       int toascii (int __c)
       int tolower (int __c)
       int toupper (int __c)

Detailed Description

       These functions perform various operations on characters.

       #include <ctype.h>

Function Documentation

   int isalnum (int__c)
       Checks for an alphanumeric character. It is equivalent to (isalpha(c)
       || isdigit(c)).

   int isalpha (int__c)
       Checks for an alphabetic character. It is equivalent to (isupper(c) ||

   int isascii (int__c)
       Checks whether c is a 7-bit unsigned char value that fits into the
       ASCII character set.

   int isblank (int__c)
       Checks for a blank character, that is, a space or a tab.

   int iscntrl (int__c)
       Checks for a control character.

   int isdigit (int__c)
       Checks for a digit (0 through 9).

   int isgraph (int__c)
       Checks for any printable character except space.

   int islower (int__c)
       Checks for a lower-case character.

   int isprint (int__c)
       Checks for any printable character including space.

   int ispunct (int__c)
       Checks for any printable character which is not a space or an
       alphanumeric character.

   int isspace (int__c)
       Checks for white-space characters. For the avr-libc library, these are:
       space, form-feed (''), newline ('
'), carriage return ('
       horizontal tab ('	'), and vertical tab ('').

   int isupper (int__c)
       Checks for an uppercase letter.

   int isxdigit (int__c)
       Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 8 9 a b c
       d e f A B C D E F.

   int toascii (int__c)
       Converts c to a 7-bit unsigned char value that fits into the ASCII
       character set, by clearing the high-order bits.

           Many people will be unhappy if you use this function. This function
           will convert accented letters into random characters.

   int tolower (int__c)
       Converts the letter c to lower case, if possible.

   int toupper (int__c)
       Converts the letter c to upper case, if possible.


       Generated automatically by Doxygen for avr-libc from the source code.

Version 1.8.0svn                Wed Jun 4<ctype.h>: Character Operations(3avr)

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.112 seconds. Last modified: November 04 2018 12:49:43.