the last record has only a period

else if(char1(recordpointer) == '.')

(*plength)++;