blob: c094de801266de16ad4f976b0083fb9e774fdf93 (
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
|
#include <wchar.h>
#include "_wchar.h"
GCC_SSE_HACK
size_t wcsrtombs(char * restrict dst, const wchar_t ** restrict src, size_t len, mbstate_t * restrict ps)
{
static struct __mbstate_t internal = { 0 };
static mbstate_t ip = { &internal };
if (ps == NULL) {
ps = &ip;
}
SIGNAL_SAFE(0);
ASSERT_MBSTATE(ps, WTOMB, dst, src);
/* TODO: overlap */
SET_MBSTATE(ps, WTOMB, dst, *src);
/* TODO: conversion */
return len;
}
/*
STDC(199409)
*/
|