|
|
0c84af |
/*******************************************************************/
|
|
|
0c84af |
/* u16ports: u16 variants of wide character string functions. */
|
|
|
12ee61 |
/* Copyright (C) 2017 SysDeer Technologies, LLC */
|
|
|
0c84af |
/* Released under the Standard MIT License; see COPYING.U16PORTS. */
|
|
|
0c84af |
/*******************************************************************/
|
|
|
0c84af |
|
|
|
0c84af |
#include <wchar.h>
|
|
|
0c84af |
#include <uchar.h>
|
|
|
0c84af |
#include <u16ports/u16ports.h>
|
|
|
0c84af |
|
|
|
0c84af |
static mbstate_t internal_state = {0};
|
|
|
0c84af |
|
|
|
0c84af |
size_t u16_mbrtowc(uint16_t * dst, const char * src, size_t len, mbstate_t * ps)
|
|
|
0c84af |
{
|
|
|
0c84af |
return mbrtoc16(dst,src,len, ps ? ps : &internal_state);
|
|
|
0c84af |
}
|