]> pd.if.org Git - pdclib/blobdiff - functions/uchar/mbrtoc32.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / uchar / mbrtoc32.c
index 05d9184fdce8c6fb9b0c4f4e4cedf187befced47..0209b36a945b129274667f70a47e041e7457d3a2 100644 (file)
@@ -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 <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,
@@ -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 )
 {