I can split a test string using strtok() using the delims " " & "=" and i know that the SRC and SPT will be in a particular token 12th & 29th however i do not know how to get these particular tokens all i'm able to do is print them off. Any help would be appriated, below is some of the code i've done already sorry if its in the wrong format.

In the while loop that you are using for printing why don't you do an strstr and extract the value that you need?

Something like

strstr(result, "SRC=");

I'm sorry but I don't quite follow you I'm afraid. Would I do this within my first while loop or the second one which is on a test char? Would you be able to show what you mean using the code I've pasted please?

If you reach to this level of granularity then there is not much to do , is there?

Once you get the string starting with SRC, you can copy the required part of it to another string using a loop (your exit criteria would be the occurrance of the D of DST) or some standard copy function.

Thank you for all your input especially thomas whose insights mainly helped me to complete what I wanted to do so I could finish the rest of the program. I saw your approach afterwards Dave and that was also very good.