11 iconv_t cd
= iconv_open ("ISO-8859-1", "UNICODE");
12 if (cd
== (iconv_t
) -1)
14 printf ("iconv_open failed: %m\n");
20 size_t inlen
= strlen (instr
);
23 size_t outlen
= sizeof (outptr
);
26 size_t n
= iconv (cd
, &inptr
, &inlen
, &outptr
, &outlen
);
29 printf ("n (= %zu) != (size_t) -1\n", n
);
34 printf ("errno = %m, not EINVAL\n");
43 #define TEST_FUNCTION do_test ()
44 #include "../test-skeleton.c"