1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include <wchar.h>
- size_t
- wcscspn(const wchar_t *s, const wchar_t *set)
- {
- const wchar_t *p;
- const wchar_t *q;
- p = s;
- while (*p) {
- q = set;
- while (*q) {
- if (*p == *q)
- goto done;
- q++;
- }
- p++;
- }
- done:
- return (p - s);
- }
|