1 2 3 4 5 6 7 8 9 10 11 12
|
/* wcslen example */
#include <stdio.h>
#include <wchar.h>
int main ()
{
wchar_t wsInput[256];
wprintf (L"Enter a sentence: ");
fgetws ( wsInput, 256, stdin ); /* includes newline characters */
wprintf (L"You entered %u characters.\n",wcslen(wsInput));
return 0;
}
|