Index: protel/main.c =================================================================== --- protel/main.c (revision 9859) +++ protel/main.c (nonexistent) @@ -1,25 +0,0 @@ -# include "stdio.h" -# include "stdlib.h" -# include "string.h" - -void main() { - - int iter = 0; - int numresults = 6; - const char *line = "0 0 0 3500 12 7 1\0"; - char *current, *next; - long results[6]; - - - for (next = current = line ; *current != '\0'; iter++, next++) { - while (*next != ' ' && *next != '\r' && *next != '\n' && *next != '\0') { - next++; - } - results[iter] = strtol(current, &next, 10); - current = next; - /*printf("current coord: %d, \t\tand current end: %s\n", (int)results[iter], end);*/ - printf("Extracted long: %ld\n", results[iter]); - } - - -}