Blame src/u16_mbrtowc.c

0c84af
/*******************************************************************/
0c84af
/*  u16ports: u16 variants of wide character string functions.     */
0c84af
/*  Copyright (C) 2017  Z. Gilboa                                  */
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
}