#include #include #include #include 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; }