Changeset a35fc17 in mainline
- Timestamp:
- 2011-07-03T13:26:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f86fa3
- Parents:
- a6d908c1
- Location:
- uspace/lib/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/ctype.c
ra6d908c1 ra35fc17 108 108 } 109 109 110 /** 111 * Checks whether character is ASCII. (obsolete) 112 * 113 * @param c 114 * @return 115 */ 116 extern int posix_isascii(int c) 117 { 118 return c >= 0 && c < 128; 119 } 120 121 /** 122 * Converts argument to a 7-bit ASCII character. (obsolete) 123 * 124 * @param c 125 * @return 126 */ 127 extern int posix_toascii(int c) 128 { 129 return c & 0x7F; 130 } 131 110 132 /** @} 111 133 */ -
uspace/lib/posix/ctype.h
ra6d908c1 ra35fc17 47 47 extern int posix_ispunct(int c); 48 48 49 /* Obsolete Functions and Macros */ 50 extern int posix_isascii(int c); 51 extern int posix_toascii(int c); 52 #undef _tolower 53 #define _tolower(c) ((c) - 'A' + 'a') 54 #undef _toupper 55 #define _toupper(c) ((c) - 'a' + 'A') 56 57 49 58 #ifndef LIBPOSIX_INTERNAL 50 59 #define isxdigit posix_isxdigit … … 54 63 #define isprint posix_isprint 55 64 #define ispunct posix_ispunct 65 66 #define isascii posix_isascii 67 #define toascii posix_toascii 56 68 #endif 57 69
Note:
See TracChangeset
for help on using the changeset viewer.