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