while(ptr_s[x]){ /*check second element for numerical digit*/ if((ptr_s[x] >= '0') && (ptr_s[x] <= '9')) x = x + 1; /* increment ptr to next element */ else if(ptr_s[x] == '.'){/*check element for . ending program # */ x = x + 1; /* increment ptr */ /*must test next char for space or prog desc is invalid */ if(ptr_s[x] != ' ') return 0; /* program filename is invalid */ break; /* break from while loop */ } else return 0; /* program description line is invalid */ } /*end while numerical digit section */ ----------- if(temp == NULL || *temp < 33 || *temp > 126) return 0; else while(temp != NULL && *temp >= 32 && *temp <= 126) temp++; if(temp == NULL || *temp != 10) return 0; return 1; }