Ignore:
Timestamp:
Jul 19, 2017, 3:31:39 PM (4 years ago)
Author:
alain
Message:

Fixing bugs in vfs_lookup()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/string.c

    r223 r238  
    152152}
    153153
     154/////////////////////////////////////
     155inline uint8_t to_lower( uint8_t  c )
     156{
     157   if (c >= 'A' && c <= 'Z') return (c | 0x20);
     158   else                      return c;
     159}
     160
     161
     162/////////////////////////////////////
     163inline uint8_t to_upper( uint8_t  c )
     164{
     165   if (c >= 'a' && c <= 'z') return (c & ~(0x20));
     166   else                      return c;
     167}
     168
     169
Note: See TracChangeset for help on using the changeset viewer.