This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2962] const in iconv arg 2
- From: "alexander.petrossian at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 17 Apr 2014 12:10:09 +0000
- Subject: [Bug libc/2962] const in iconv arg 2
- Auto-submitted: auto-generated
- References: <bug-2962-131 at http dot sourceware dot org/bugzilla/>
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.