Changeset 4ec91b2f in mainline for uspace/lib/libc/include/ctype.h


Ignore:
Timestamp:
2007-09-15T13:44:56Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d0b72c4
Parents:
d79dcdb
Message:

Implementation of isalpha().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ctype.h

    rd79dcdb r4ec91b2f  
    3636#define LIBC_CTYPE_H_
    3737
     38static inline int isalpha(int c)
     39{
     40        return (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')));
     41}
     42
    3843static inline int isdigit(int c)
    3944{
    40         return ((c >= '0' )&&( c <= '9'));
     45        return ((c >= '0') && (c <= '9'));
    4146}
    4247
Note: See TracChangeset for help on using the changeset viewer.