This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/4851] New: Inconsistency between manual pages and Info pages concerning getline() and getdelim()
- From: "jvshahid at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Jul 2007 09:16:16 -0000
- Subject: [Bug manual/4851] New: Inconsistency between manual pages and Info pages concerning getline() and getdelim()
- Reply-to: sourceware-bugzilla at sourceware dot org
The Info pages doesn't mention that _GNU_SOURCE has to be defined before
including stdio.h as it is pointed out in the manual pages of getline. The info
pages I'm refering to is version 0.10 (which I believe is the latest version).
Following the info pages guidelines, compiling the following program with -Wall
will produce a warning for implicit declaration of getline:
#include <stdio.h>
int main(void)
{
char *line = NULL;
size_t size = 0;
getline(&line, &size, stdin);
return 0;
}
gcc output:
test.c: In function ?main?:
test.c:6: warning: implicit declaration of function ?getline?
--
Summary: Inconsistency between manual pages and Info pages
concerning getline() and getdelim()
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: manual
AssignedTo: roland at gnu dot org
ReportedBy: jvshahid at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4851
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.