I have tokenized a buffer that I had, and at the point of the question, the token holds the following:
token = "Host: localhost:8080"
I'm trying to break apart each word so that I can check the HTTP request for "Content-Length: ", which will come up if I parse the next line. I am attempting to do this with another token, but every time I do the following, it overwrites the local token variable:
poken = strtok(token, " ");
poken prior to the execution of it
Is there another way to isolate strings using spaces as a delimiter?