x Pointer to str. NULL Indicates the end-of-file or an error. The contents of str are undefined if a read error occurs.