#include #include #include #include #include #include #include /* * If the library headers are not installed but you have them in the current * directory, change and to "nsdefs.h" and "uninum.h". */ wchar_t *str=L"\x0ED5\x0ED7\x0ED6"; int main(int ac, char **av) { union ns_rval val; unsigned long myint; StringToInt(&val,str,NS_TYPE_ULONG,NS_ANY); if(0 == uninum_err) myint = val.u; printf("Myint = %u.\n",myint); exit(0); }