...scanf, or else you might
be caught on an infinite loop (if the format is not
suitable to the scanf fmt string):
for (;;) {
lstptr = (INPUT*) malloc(sizeof(INPUT));
if (fscanf(textfile,"%s %s %s %s", lstptr->field0, lstptr->field1, lstptr->field2, lstptr>field3) <=...