1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 /* ISO C1x Unicode utilities
7 * Based on ISO/IEC SC22/WG14 9899 TR 19769 (SC22 N1326)
8 *
9 * THIS SOFTWARE IS NOT COPYRIGHTED
10 *
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
13 *
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 * Date: 2011-09-27
20 */
21
22 #include <errno.h>
23 #include <uchar.h>
24
c16rtomb(char * __restrict__ s,char16_t c16,mbstate_t * __restrict__ state)25 size_t c16rtomb (char *__restrict__ s,
26 char16_t c16,
27 mbstate_t *__restrict__ state)
28 {
29 /* wchar_t should compatible to char16_t on Windows */
30 return wcrtomb(s, c16, state);
31 }
32
33