/* but first, write a little minimal C program that calls u32_conv_from_encoding * with the same parameters used here: * fromcode=="ASCII", handler==iconveh_question_mark, src=="a", srclen==1, offsets==NULL, * resultbuf==NULL, and lengthp should be a pointer to a size_t variable */ #include #include #include #include #include static const char a_str[] = { 0x61, 0x00 }; int main (int argc, char *argv[]) { uint32_t *result; size_t some_size; result = u32_conv_from_encoding ("ASCII", iconveh_question_mark, a_str, 1, NULL, NULL, &some_size); printf ("result = %p\n", result); return EXIT_SUCCESS; }