Ticket #18350: foo.c
File foo.c, 279 bytes (added by , 19 months ago) |
---|
Line | |
---|---|
1 | #ifdef __HAIKU__ |
2 | #include <stdint.h> |
3 | #endif |
4 | #include <uchar.h> |
5 | #include <stdio.h> |
6 | #include <stdlib.h> |
7 | static char32_t wc; |
8 | static mbstate_t mbs; |
9 | int |
10 | main (void) |
11 | { |
12 | int ret = mbrtoc32 (&wc, "", 0, &mbs); |
13 | printf ("ret = %d\n", ret); |
14 | if (ret != -2) |
15 | abort (); |
16 | return 0; |
17 | } |