diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-07-17 21:22:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-23 16:46:14 +0200 |
commit | 17e60440747c3363157a08560eb725f91f08ce4a (patch) | |
tree | bfa45ea52966ec53db23fc4670bcea1e9b257ac3 /include/xfuncs.h | |
parent | 773be2a16842d68da84b9f2283f8bf9c07688290 (diff) | |
download | barebox-17e60440747c3363157a08560eb725f91f08ce4a.tar.gz |
xfuncs: add wrapper for wchar strdup functions
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/xfuncs.h')
-rw-r--r-- | include/xfuncs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xfuncs.h b/include/xfuncs.h index 7885a6ee3e..e3f120a040 100644 --- a/include/xfuncs.h +++ b/include/xfuncs.h @@ -3,6 +3,7 @@ #include <linux/types.h> #include <stdarg.h> +#include <wchar.h> void *xmalloc(size_t size); void *xrealloc(void *ptr, size_t size); @@ -14,4 +15,8 @@ void* xmemdup(const void *orig, size_t size); char *xasprintf(const char *fmt, ...) __attribute__ ((format(__printf__, 1, 2))); char *xvasprintf(const char *fmt, va_list ap); +wchar_t *xstrdup_wchar(const wchar_t *src); +wchar_t *xstrdup_char_to_wchar(const char *src); +char *xstrdup_wchar_to_char(const wchar_t *src); + #endif /* __XFUNCS_H */ |