BizHawk/waterbox/libc/functions/uchar/_PDCLIB_c16slen.c

29 lines
426 B
C

/* _PDCLIB_c16slen( const char16_t * );
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
#ifndef REGTEST
#include <uchar.h>
size_t _PDCLIB_c16slen( const char16_t * str )
{
size_t n = 0;
while(*(str++)) n++;
return n;
}
#endif
#ifdef TEST
#include "_PDCLIB_test.h"
int main( void )
{
return TEST_RESULTS;
}
#endif