i am trying to parse input from a character buffer char buf[BUFLEN];
The input I'm trying to parse is:
GET /file.html HTTP/1.3
Host: www.bbc.co.uk
I need to store the GET
, the /index.html
, HTTP/1.1
and www.bbc.co.uk
all into separate variables
What is the best way to parse over this input and separate it into variables?
Thanks