1

I want to parse the line variable using the strtok function using " " as the delimiter.

However, its not clear to me how to store the method, request_target and http_version variables using strtok. Can someone please elaborate?

1

I figured it out. I just declared three variables named method, request_target and http_version and then simply assigned them to token after every call to strtok.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .