added funcs
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1418 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
		| @@ -104,6 +104,11 @@ static inline int isxdigit(int c) | ||||
| 		(c >= 'A' && c <= 'F')); | ||||
| } | ||||
|  | ||||
| static inline int isupper(int c) | ||||
| { | ||||
| 	return (c >= 'A' && c <= 'Z'); | ||||
| } | ||||
|  | ||||
| static inline int islower(int c) | ||||
| { | ||||
| 	return (c >= 'a' && c <= 'z'); | ||||
| @@ -115,4 +120,11 @@ static inline int toupper(int c) | ||||
|                 c -= 'a'-'A'; | ||||
|         return c; | ||||
| } | ||||
|  | ||||
| static inline int tolower(int c) | ||||
| { | ||||
|         if (isupper(c)) | ||||
|                 c -= 'A'-'a'; | ||||
|         return c; | ||||
| } | ||||
| #endif /* STRING_H */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user