Bug #1695 Updated: fgets read to few data (1 byte)

From: Date: Mon, 12 Jul 1999 06:43:25 +0000
Subject: Bug #1695 Updated: fgets read to few data (1 byte)
Groups: php.dev 
Request: Send a blank email to php-dev+get-8375@lists.php.net to get a copy of this message
ID: 1695 Updated by: sas Reported By: andreas.rieber@tlc.de Status: Closed Bug Type: Other Assigned To: Comments: The observed behaviour is correct. From the Single Unix Specification: char *fgets(char *s, int n, FILE *stream); The fgets() function reads bytes from stream into the array pointed to by s, until n-1 bytes are read, or a newline character is read and transferred to s, or an end-of-file condition is encountered. The string is then terminated with a null byte. Full Bug description available at: http://bugs.php.net/?id=1695

« previous php.dev (#8375) next »