X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fuchar%2Fmbrtoc32.c;h=0209b36a945b129274667f70a47e041e7457d3a2;hp=05d9184fdce8c6fb9b0c4f4e4cedf187befced47;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=d1fcc4fe103262fb8148537ce78b3ecb9ae04272 diff --git a/functions/uchar/mbrtoc32.c b/functions/uchar/mbrtoc32.c index 05d9184..0209b36 100644 --- a/functions/uchar/mbrtoc32.c +++ b/functions/uchar/mbrtoc32.c @@ -1,8 +1,4 @@ -/* 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. @@ -13,8 +9,8 @@ #include #include #include -#include <_PDCLIB_encoding.h> -#include <_PDCLIB_locale.h> +#include "_PDCLIB_encoding.h" +#include "_PDCLIB_locale.h" size_t mbrtoc32_l( char32_t *restrict pc32, @@ -33,6 +29,7 @@ size_t mbrtoc32_l( // 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 @@ -65,7 +62,7 @@ size_t mbrtoc32( #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {