Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/waterbox/libc/functions/uchar/_PDCLIB_c16slen.c
2 views
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
29
30