hi i have an array which is like the following which will be inputted at by the user in another pc and i wil get it through sockets....
name:asd
add:sdf
married;single
dob:11/11/12/
i just want to find the field after married:
i tried using strtok
i.e. p=strtok(msg,";")
but it will only give me values before "single" .....i just need the value after married and before dob i.e. "single"
i am using c programming in linux
can anyone help me