blob: 9b41e2a2313367177493f09ae6df30d35056d03c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <wchar.h>
#include "_wchar.h"
int mbsinit(const mbstate_t * ps)
{
SIGNAL_SAFE(0);
if (ps == NULL || ps->__impl == NULL) {
return 1;
}
struct __mbstate_t *m = ps->__impl;
if (m->ctype_epoch == 0 && m->dir == NONE && m->mbs == NULL && m->wcs == NULL) {
return 1;
}
return 0;
}
/*
STDC(199409)
*/
|