Changeset 2b20947 in mainline for uspace/lib/libc/include/ctype.h


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

VFS work.
Delve deeper into VFS_REGISTER.

File:
1 edited

Legend:

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

    rd0b72c4 r2b20947  
    3636#define LIBC_CTYPE_H_
    3737
     38static inline int islower(int c)
     39{
     40        return ((c >= 'a') && (c <= 'z'));
     41}
     42
     43static inline int isupper(int c)
     44{
     45        return ((c >= 'A') && (c <= 'Z'));
     46}
     47
    3848static inline int isalpha(int c)
    3949{
    40         return (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')));
     50        return (islower(c) || isupper(c));
    4151}
    4252
Note: See TracChangeset for help on using the changeset viewer.