int swscanf (const wchar_t* ws, const wchar_t* format, ...);
1234567891011121314
/* swscanf example */ #include <wchar.h> int main () { wchar_t sentence [] = L"Michael is 10 years old"; wchar_t str [20]; int i; swscanf (sentence,L"%ls %*s %d",str,&i); wprintf (L"%ls -> %d\n",str,i); return 0; }
Michael -> 10