Changeset 6c69d19 in mainline for uspace/lib/posix/ctype.c
- Timestamp:
- 2011-07-25T20:34:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00c2de63, c936c7f
- Parents:
- 5889fc74 (diff), d542aad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/ctype.c
r5889fc74 r6c69d19 31 31 * @{ 32 32 */ 33 /** @file 33 /** @file Character classification. 34 34 */ 35 35 … … 43 43 * Checks whether character is a hexadecimal digit. 44 44 * 45 * @param c 46 * @return 45 * @param c Character to inspect. 46 * @return Non-zero if character match the definition, zero otherwise. 47 47 */ 48 48 int posix_isxdigit(int c) … … 56 56 * Checks whether character is a word separator. 57 57 * 58 * @param c 59 * @return 58 * @param c Character to inspect. 59 * @return Non-zero if character match the definition, zero otherwise. 60 60 */ 61 61 int posix_isblank(int c) … … 67 67 * Checks whether character is a control character. 68 68 * 69 * @param c 70 * @return 69 * @param c Character to inspect. 70 * @return Non-zero if character match the definition, zero otherwise. 71 71 */ 72 72 int posix_iscntrl(int c) … … 78 78 * Checks whether character is any printing character except space. 79 79 * 80 * @param c 81 * @return 80 * @param c Character to inspect. 81 * @return Non-zero if character match the definition, zero otherwise. 82 82 */ 83 83 int posix_isgraph(int c) … … 89 89 * Checks whether character is a printing character. 90 90 * 91 * @param c 92 * @return 91 * @param c Character to inspect. 92 * @return Non-zero if character match the definition, zero otherwise. 93 93 */ 94 94 int posix_isprint(int c) … … 100 100 * Checks whether character is a punctuation. 101 101 * 102 * @param c 103 * @return 102 * @param c Character to inspect. 103 * @return Non-zero if character match the definition, zero otherwise. 104 104 */ 105 105 int posix_ispunct(int c) 106 106 { 107 return !isspace(c) && !isalnum(c) ;107 return !isspace(c) && !isalnum(c) && posix_isprint(c); 108 108 } 109 109 … … 111 111 * Checks whether character is ASCII. (obsolete) 112 112 * 113 * @param c 114 * @return 113 * @param c Character to inspect. 114 * @return Non-zero if character match the definition, zero otherwise. 115 115 */ 116 116 extern int posix_isascii(int c) … … 122 122 * Converts argument to a 7-bit ASCII character. (obsolete) 123 123 * 124 * @param c 125 * @return 124 * @param c Character to convert. 125 * @return Coverted character. 126 126 */ 127 127 extern int posix_toascii(int c)
Note:
See TracChangeset
for help on using the changeset viewer.