Skip to content

Instantly share code, notes, and snippets.

@jumpinjackie
Created July 30, 2014 02:49
Show Gist options
  • Save jumpinjackie/6694c5c0a4e38f1396d0 to your computer and use it in GitHub Desktop.
Save jumpinjackie/6694c5c0a4e38f1396d0 to your computer and use it in GitHub Desktop.
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