fgetln: Fix coding style

This commit is contained in:
Guillem Jover 2008-07-09 08:26:07 +03:00
parent 47109e39d5
commit fafffd1f7e

View File

@ -34,15 +34,15 @@
char *
fgetln (FILE *stream, size_t *len)
{
char *line=NULL;
char *line = NULL;
ssize_t nread;
nread = getline (&line, len, stream);
if (nread == -1)
return NULL;
(*len)--; /* get rid of the trailing \0, fgetln
does not have it */
/* Get rid of the trailing \0, fgetln does not have it. */
(*len)--;
return line;
}