I am not pretty sure, whether this is legal or not. But it seems to compile fine with no error. The thing which i am worried about here is that, I am using the same char array "str" to point at fetched data again in sscanf. Is it right?Code:char str[] = "\"-d\""; sscanf(str, "\"%[^\"]", str);
Thank you
sshairsh