0062-wcscspn.c (305B)
1 #include <assert.h> 2 #include <stdio.h> 3 #include <wchar.h> 4 5 /* 6 output: 7 testing 8 done 9 end: 10 */ 11 12 int 13 main() 14 { 15 puts("testing"); 16 17 assert(wcscspn(L"0125", L"56789") == 3); 18 assert(wcscspn(L"", L"56789") == 0); 19 assert(wcscspn(L"01234", L"") == 5); 20 assert(wcscspn(L"", L"") == 0); 21 22 puts("done"); 23 24 return 0; 25 }