clarify fgets as a function