![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef BOOT_CTYPE_H 0003 #define BOOT_CTYPE_H 0004 0005 static inline int isdigit(int ch) 0006 { 0007 return (ch >= '0') && (ch <= '9'); 0008 } 0009 0010 static inline int isxdigit(int ch) 0011 { 0012 if (isdigit(ch)) 0013 return true; 0014 0015 if ((ch >= 'a') && (ch <= 'f')) 0016 return true; 0017 0018 return (ch >= 'A') && (ch <= 'F'); 0019 } 0020 0021 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |