Changeset 238 for trunk/kernel/libk/string.c
- Timestamp:
- Jul 19, 2017, 3:31:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/string.c
r223 r238 152 152 } 153 153 154 ///////////////////////////////////// 155 inline 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 ///////////////////////////////////// 163 inline 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.