Created
July 30, 2014 02:49
-
-
Save jumpinjackie/6694c5c0a4e38f1396d0 to your computer and use it in GitHub Desktop.
iconv_open test application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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