]> pd.if.org Git - pdclib/blob - functions/wchar/wcslen.c
dos2unix
[pdclib] / functions / wchar / wcslen.c
1 /* wcslen( const wchar_t * );
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <wchar.h>
8
9 #ifndef REGTEST
10
11 size_t wcslen( const wchar_t * str )
12 {
13     size_t n = 0;
14     while(*(str++)) n++;
15     return n;
16 }
17
18
19 #endif
20
21 #ifdef TEST
22 #include "_PDCLIB_test.h"
23
24 int main( void )
25 {
26     return TEST_RESULTS;
27 }
28
29 #endif