diff options
Diffstat (limited to 'src/ctype')
| -rw-r--r-- | src/ctype/_tolower.h | 24 | ||||
| -rw-r--r-- | src/ctype/_toupper.h | 24 | ||||
| -rw-r--r-- | src/ctype/isascii.c | 26 | ||||
| -rw-r--r-- | src/ctype/toascii.c | 22 |
4 files changed, 0 insertions, 96 deletions
diff --git a/src/ctype/_tolower.h b/src/ctype/_tolower.h deleted file mode 100644 index 7ea943df..00000000 --- a/src/ctype/_tolower.h +++ /dev/null @@ -1,24 +0,0 @@ -#if 0 - -#include <ctype.h> - -/** convert an uppercase letter to lowercase **/ - -#define _tolower(__c) tolower(__c) - -/*** -converts an uppercase letter to its equivalent lowercase letter in the current -locale. -***/ - -/* -ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF) -RETURN_SUCCESS(ARGUMENT(c) converted to uppercase) -UNDEFINED(ARGUMENT(c) is not an upper-case letter) -LC_CTYPE -XOPEN(4) -XOBSOLETE(700, FUNCTION(tolower)) -*/ - - -#endif diff --git a/src/ctype/_toupper.h b/src/ctype/_toupper.h deleted file mode 100644 index 5abdb172..00000000 --- a/src/ctype/_toupper.h +++ /dev/null @@ -1,24 +0,0 @@ -#if 0 - -#include <ctype.h> - -/** convert a lowercase letter to uppercase **/ - -#define _toupper(__c) toupper(__c) - -/*** -converts a lowercase letter to its equivalent uppercase letter in the current -locale. -***/ - -/* -ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF) -RETURN_SUCCESS(ARGUMENT(c) converted to uppercase) -UNDEFINED(ARGUMENT(c) is not a lowercase letter) -LC_CTYPE -XOPEN(4) -XOBSOLETE(700, FUNCTION(toupper)) -*/ - - -#endif diff --git a/src/ctype/isascii.c b/src/ctype/isascii.c deleted file mode 100644 index cf7bba28..00000000 --- a/src/ctype/isascii.c +++ /dev/null @@ -1,26 +0,0 @@ -#include <ctype.h> -#include "_ctype.h" - -/** test whether a character is in the ASCII range **/ - -int isascii(int c) -{ - SIGNAL_SAFE(0); - if (0 <= c && c <= 0177) { - return 1; - } - return 0; -} - -__check_1(int, 0, isascii, int) - -/*** -tests whether ARGUMENT(c) is a 7-bit US-ASCII character. -***/ - -/* -RETURN(NONZERO, ARGUMENT(c) is between 0 and octal 0177 inclusive) -RETURN(ZERO, ARGUMENT(c) is outside of the ASCII range) -XOBSOLETE(700) -XOPEN(4) -*/ diff --git a/src/ctype/toascii.c b/src/ctype/toascii.c deleted file mode 100644 index c352a121..00000000 --- a/src/ctype/toascii.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <ctype.h> -#include "_ctype.h" - -/** convert a character to 7-bit ASCII **/ - -int toascii(int c) -{ - SIGNAL_SAFE(0); - return (c & 0x7f); -} - -__check_1(int, 0, toascii, int) - -/*** -converts ARGUMENT(c) to 7-bit ASCII. -***/ - -/* -RETURN(ARGUMENT(c) & 0x7f) -XOBSOLETE(700) -XOPEN(4) -*/ |
