checked fgets ret value