Changes in uspace/lib/c/include/str.h [da680b4b:4805495] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/str.h
rda680b4b r4805495 1 1 /* 2 * Copyright (c) 2001-2004 Jakub Jermar 2 3 * Copyright (c) 2005 Martin Decky 3 4 * Copyright (c) 2011 Oleg Romanenko … … 34 35 */ 35 36 36 #ifndef LIBC_STR_H_37 #define LIBC_STR_H_37 #ifndef _LIBC_STR_H_ 38 #define _LIBC_STR_H_ 38 39 39 40 #ifdef __cplusplus … … 42 43 43 44 #include <errno.h> 44 #include < mem.h>45 #include <stdbool.h> 45 46 #include <stddef.h> 46 47 #include <stdint.h> 47 #include <stdbool.h>48 48 49 #define U_SPECIAL '?' 49 #include <mem.h> 50 51 /* Common Unicode characters */ 52 #define U_SPECIAL '?' 50 53 51 54 /** No size limit constant */ … … 63 66 extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); 64 67 extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz); 65 extern errno_t chr_encode( constwchar_t ch, char *str, size_t *offset, size_t sz);68 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz); 66 69 67 70 extern size_t str_size(const char *str); … … 116 119 extern bool wstr_remove(wchar_t *str, size_t pos); 117 120 118 extern char *str_dup(const char * );119 extern char *str_ndup(const char * , size_t max_size);121 extern char *str_dup(const char *src); 122 extern char *str_ndup(const char *src, size_t n); 120 123 121 124 extern char *str_tok(char *, const char *, char **);
Note:
See TracChangeset
for help on using the changeset viewer.