I am trying to access a string.
wchar_t *str;
char *Pname;
FILE *fp;
str = somefunction();
Pname = str;
fp = fopen ("/tmp/test","a+");
fprintf(fp,"%s\n",Pname);
fclose(fp);
str actually contains "ABigName", but the file simply contains the first letter, "A".