summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
blob: 392211039a6181661371beb8984a684edca11c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __WCHAR_H
#define __WCHAR_H

#include <linux/types.h>
#include <linux/stddef.h>

wchar_t *strdup_wchar(const wchar_t *src);

char *strcpy_wchar_to_char(char *dst, const wchar_t *src);

wchar_t *strcpy_char_to_wchar(wchar_t *dst, const char *src);

wchar_t *strdup_char_to_wchar(const char *src);

char *strdup_wchar_to_char(const wchar_t *src);

size_t wcslen(const wchar_t *s);

size_t wcsnlen(const wchar_t *s, size_t maxlen);

#define MB_CUR_MAX 4

int mbtowc(wchar_t *pwc, const char *s, size_t n);
int wctomb(char *s, wchar_t wc);

#endif /* __WCHAR_H */