This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/4851] New: Inconsistency between manual pages and Info pages concerning getline() and getdelim()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]