/* This file was adapted from the Public Domain C Library (PDCLib). * * Permission is granted to use, modify, and/or redistribute at will. */ #include size_t _PDCLIB_c32slen( const char32_t * str ) { size_t n = 0; while(*(str++)) n++; return n; }