aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/tests/ansi/wcsrtombs.c
blob: 80df25707b466177d7b5b08d66ae7b51194709a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <wchar.h>
#include <assert.h>
#include <string.h>

int main() {
	const wchar_t str[] = L"wcsrtombs";
	const wchar_t *p = str;
	int ret = wcsrtombs(NULL, &p, 343245234, NULL);
	assert(ret == 9);
	return 0;
}