...
Therefore, if fgets() returns a non-null pointer, we can assume it actually filled the array with data. However, assuming that it filled the array with a nonempty , null-terminated byte string (NTBS) is erroneous because the data it placed in the array may contain null characters.
...