diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-05 11:06:07 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-05 11:06:07 -0800 |
commit | 8b1fadd6a89f12cbc81c5d621a75b91dd9eedec2 (patch) | |
tree | 0b130b02101391e206c07cb0a1c9031bb4d27f21 /libc/include | |
parent | 4830af498e2d3a5440e65c63a3595b91f1cd4ac9 (diff) |
Adding Sun's fdlibm, and libnix's scanf, tweaked to become an xscanf. Adding a few more libc inlined also.
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/ctype.h | 2 | ||||
-rw-r--r-- | libc/include/math.h | 4 | ||||
-rw-r--r-- | libc/include/stdio.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libc/include/ctype.h b/libc/include/ctype.h index 22e3e81..b57abbb 100644 --- a/libc/include/ctype.h +++ b/libc/include/ctype.h @@ -16,5 +16,7 @@ static inline int isgraph(int c) { return !iscntrl(c) && !isspace(c); } static inline int isprint(int c) { return !iscntrl(c); } static inline int ispunct(int c) { return !iscntrl(c) && !isspace(c) && !isalnum(c); } +static inline int toupper(int c) { return islower(c) ? c & ~0x20 : c; } +static inline int tolower(int c) { return isupper(c) ? c | 0x20 : c; } #endif diff --git a/libc/include/math.h b/libc/include/math.h deleted file mode 100644 index b41fee0..0000000 --- a/libc/include/math.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef __MATH_H__ -#define __MATH_H__ - -#endif diff --git a/libc/include/stdio.h b/libc/include/stdio.h index 1be0c6e..ee6226f 100644 --- a/libc/include/stdio.h +++ b/libc/include/stdio.h @@ -7,6 +7,8 @@ #include <unistd.h> #include <malloc.h> +static const int EOF = -1; + struct _FILE { int fd; }; |