Changeset bc73be3 in mainline for uspace/lib/c/include/str.h
- Timestamp:
- 2019-06-27T08:51:20Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8add15e0
- Parents:
- ad40b74b (diff), aeba767 (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
-
uspace/lib/c/include/str.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/str.h
rad40b74b rbc73be3 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_ 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 37 #ifndef _LIBC_STR_H_ 38 #define _LIBC_STR_H_ 42 39 43 40 #include <errno.h> 44 #include < mem.h>41 #include <stdbool.h> 45 42 #include <stddef.h> 46 43 #include <stdint.h> 47 #include <stdbool.h>48 44 49 #define U_SPECIAL '?' 45 #include <mem.h> 46 #include <_bits/decls.h> 47 48 #ifndef __cplusplus 49 50 /* Common Unicode characters */ 51 #define U_SPECIAL '?' 50 52 51 53 /** No size limit constant */ … … 61 63 #define SPASCII_STR_BUFSIZE(spa_size) ((spa_size) + 1) 62 64 65 #endif 66 67 __HELENOS_DECLS_BEGIN; 68 63 69 extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); 64 70 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);71 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz); 66 72 67 73 extern size_t str_size(const char *str); … … 116 122 extern bool wstr_remove(wchar_t *str, size_t pos); 117 123 118 extern char *str_dup(const char * );119 extern char *str_ndup(const char * , size_t max_size);124 extern char *str_dup(const char *src); 125 extern char *str_ndup(const char *src, size_t n); 120 126 121 127 extern char *str_tok(char *, const char *, char **); … … 131 137 extern errno_t str_size_t(const char *, const char **, unsigned int, bool, 132 138 size_t *); 133 extern int str_int64_t(const char *, const char **, unsigned int, bool,139 extern errno_t str_int64_t(const char *, const char **, unsigned int, bool, 134 140 int64_t *); 135 141 … … 144 150 extern unsigned long strtoul(const char *, char **, int); 145 151 146 #ifdef __cplusplus 147 } 148 #endif 152 __HELENOS_DECLS_END; 149 153 150 154 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
