record = dataset->data; /* keep records that match the criteria, otherwise delete them */ while(record != NULL) { if(atoi(record->data[0]) == 1008130) { record->data[2] = "C"; } record = record->next; }