[libc] Rewrite unrelicensable portions of ctype.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-03-02 14:41:49 +00:00
parent 5d1f351278
commit d1f0e89e4e
2 changed files with 105 additions and 20 deletions

View File

@@ -35,11 +35,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
/**
* Check to see if character is a space
*
* @v c Character
* @v character Character
* @ret isspace Character is a space
*/
int isspace ( int c ) {
switch ( c ) {
int isspace ( int character ) {
switch ( character ) {
case ' ' :
case '\f' :
case '\n' :