Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iconv_open test application
#include <iconv.h>
#include <stdio.h>
int main(int argc, char** argv)
{
iconv_t r = iconv_open("UTF-8", "WCHAR_T");
if ((iconv_t)-1 != r)
{
iconv_close(r);
printf("iconv_open() worked!\n");
return 0;
}
else
{
printf("iconv_open() failed\n");
return -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.