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 libc/2962] const in iconv arg 2


https://sourceware.org/bugzilla/show_bug.cgi?id=2962

--- Comment #10 from Alexander Petrossian (PAF) <alexander.petrossian at gmail dot com> ---
Found
http://www.opengroup.org/infosrv/XPG4_Brand/resolutions/XoTGBase94-001.ps.Z

Quote:
Since applications should be able to pass an argument of type char ** to
iconv(), iconv() page should be corrected.

-------
void iconv(const char** inbuf);

void f() {
    char* inbuf;
    iconv(&inbuf);
}
------
cc t.c
t.c: In function âfâ:
t.c:5: warning: passing argument 1 of âiconvâ from incompatible pointer type

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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