Hi I am trying to parse a line of text from a file using strtol, but I can only seem to get the first word on the line. From the M$ help file it says the second paramater is a pointer to wherever the last function stops, and the third is the number base. So why wont this work:
When my text file line looks like:Code:char* endptr; in.getline(str, FILTER_NAME_MAX_LINE-2); w = (Uint16)strtol(str, &endptr, 10); h = (Uint16)strtol(str, &endptr, 10);
Code:3 5 \n