]> pd.if.org Git - pdclib/blob - functions/uchar/_PDCLIB_c16slen.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / uchar / _PDCLIB_c16slen.c
1 /* _PDCLIB_c16slen( const char16_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 #ifndef REGTEST
8 #include <uchar.h>
9
10 size_t _PDCLIB_c16slen( const char16_t * str )
11 {
12     size_t n = 0;
13     while(*(str++)) n++;
14     return n;
15 }
16
17
18 #endif
19
20 #ifdef TEST
21 #include "_PDCLIB_test.h"
22
23 int main( void )
24 {
25     return TEST_RESULTS;
26 }
27
28 #endif