I got this piece of code:
it is somewhere in a function, which gets buf as parameter.PHP Code:
char *buf, path , alias;
printf("Buf: %s \n", buf);
if(sscanf(buf, "%*s %s %s", path, alias)!=2)
printf("Buf: %s \n",buf);
printf("Path: %s\nAlias: %s\n", path, alias);
Now the output in the console is:
Buf: PATH U ON
my problem lies between the first and second line, as u can see buf is somehow altered, allthough only sscanf is called.
Hope i didnt explain it too bad, thanks for any help.
edit: Forgot to say that the declaration actually isnt directly above the code its just there to show the types of each variable