Changeset ab936440 in mainline for uspace/lib/c/include/str.h
- Timestamp:
- 2019-02-12T20:42:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f31ca47
- Parents:
- 7f7817a9 (diff), 4805495 (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. - git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/str.h
r7f7817a9 rab936440 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.