12 files changed:
+#include <stdint.h>
#include <ctype.h>
int isalnum(int c)
+#include <stdint.h>
#include <ctype.h>
int isalpha(int c)
+#include <stdint.h>
#include <ctype.h>
int isascii(int c)
{
- return (c >= 0) && (c <= 127);
+ uint8_t cb = c;
+ return (cb >= 0) && (cb <= 127);
}
+#include <stdint.h>
#include <ctype.h>
int iscntrl(int c)
{
- char bc = c;
+ uint8_t bc = c;
return ((bc >= 0) && (bc <= 31)) || (bc == 127);
}
+#include <stdint.h>
#include <ctype.h>
int isdigit(int c)
{
- char bc = c;
+ uint8_t bc = c;
return (bc >= '0') && (bc <= '9');
}
+#include <stdint.h>
#include <ctype.h>
int isgraph(int c)
+#include <stdint.h>
#include <ctype.h>
int islower(int c)
{
- char bc = c;
+ uint8_t bc = c;
return (bc >= 'a') && (bc <= 'z');
}
+#include <stdint.h>
#include <ctype.h>
int isoctal(int c)
{
- char bc = c;
+ uint8_t bc = c;
return (bc >= '0') && (bc <= '7');
}
+#include <stdint.h>
#include <ctype.h>
int ispunct(int c)
+#include <stdint.h>
#include <ctype.h>
#include <string.h>
+#include <stdint.h>
#include <ctype.h>
int isupper(int c)
{
- char bc = c;
+ uint8_t bc = c;
return (bc >= 'A') && (bc <= 'Z');
}
+#include <stdint.h>
#include <ctype.h>
int isxdigit(int c)
{
- char bc = c;
+ uint8_t bc = c;
return isdigit(bc)
|| ((bc >= 'a') && (bc <= 'f'))
|| ((bc >= 'A') && (bc <= 'F'));