In my parse() I used this code snipped I found on google in order to extract the method:
char* method = strtok(line, " ");
I'm getting the following error:
/usr/include/string.h:348:39: note: passing argument to parameter '__s' here extern char *strtok (char *__restrict __s, const char *__restrict __delim)
Is there a way to work around it, or do I have to try a different approach using strstr ecc. as per specs?