Changes in uspace/lib/bithenge/src/linux/common.h [5a6cc679:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/linux/common.h
r5a6cc679 r28a5ebd 37 37 #include <stdlib.h> 38 38 #include <string.h> 39 #include < wchar.h>39 #include <uchar.h> 40 40 41 41 #define max(aleph, bet) ((aleph) > (bet) ? (aleph) : (bet)) … … 55 55 } 56 56 57 static inline errno_t string_iterator_next(string_iterator_t *i, wchar_t *out)57 static inline errno_t string_iterator_next(string_iterator_t *i, char32_t *out) 58 58 { 59 59 wint_t rc = btowc(*(*i)++); // TODO 60 *out = ( wchar_t) rc;60 *out = (char32_t) rc; 61 61 return rc == WEOF ? EILSEQ : EOK; 62 62 } … … 72 72 } 73 73 74 static inline const char *str_chr(const char *string, wchar_t ch)74 static inline const char *str_chr(const char *string, char32_t ch) 75 75 { 76 76 return strchr(string, wctob(ch)); // TODO
Note:
See TracChangeset
for help on using the changeset viewer.