I am writing an FTP client program, what I need is tp parse some part of string
227 Entering Passive Mode (199,232,41,7,223,110)
in this line I need to have numbers after the 4th ',', and have them in one string or buffer
what I am currently doing is to strstr() and get the pointer to the 4th comma, I need help with how to get the rest of teh numbers and ssave them somewhere without comma
p=calloc(50, sizeof(char)); // error check calloc
for(i=0 ; i<4 ; i++)
could you tell me also if it is the correct way to do it?