26.01.2014, 18:30
a little snippit of my code, i feel like im not doing this right.
I am pulling csv data from a socket. But for what ever reason its not parsing all the data correctly because i suspect im not parsing the delimiters correctly. Any help here?
Код:
if(strfind(data, "stopandhold", false) != -1)//stopandhold,dept,info,reason { new dept[16], info[48], reason[48]; sscanf(data,"p<,>s[16]s[48]s[48]", dept, info, reason); //rest of code ommited }