-/* size_t mbrtoc32(
- char16_t *restrict pc16,
- const char *restrict s,
- size_t n,
- mbstate_t *restrict ps);
+/* size_t mbrtoc32( char32_t *, const char *, size_t, mbstate_t * )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
#include <errno.h>
#include <stdint.h>
#include <assert.h>
-#include <_PDCLIB_encoding.h>
-#include <_PDCLIB_locale.h>
+#include "_PDCLIB_encoding.h"
+#include "_PDCLIB_locale.h"
size_t mbrtoc32_l(
char32_t *restrict pc32,
// A character was output
if(nr == n) {
// The output character resulted entirely from stored state
+ // With UTF-32, this shouldn't be possible?
return (size_t) -3;
} else if(pc32[-1] == 0) {
// Was null character
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
int main( void )
{