Subject: Re: iconv(3) prototype
To: James K. Lowden <jklowden@schemamania.org>
From: Pavel Cahyna <pavel.cahyna@st.cuni.cz>
List: tech-userlevel
Date: 08/02/2004 13:08:05
On Tue, 27 Jul 2004 05:34:14 +0000, James K. Lowden wrote:

> On Mon, 26 Jul 2004, christos@zoulas.com (Christos Zoulas) wrote:
>> 
>> We have:
>> 
>> size_t
>> iconv(iconv_t, const char **restrict, size_t *restrict,
>>     char **restrict, size_t *restrict);
>> 
>> X/Open wants:
>> 
>> size_t
>> iconv(iconv_t, char **restrict, size_t *restrict,
>>     char **restrict, size_t *restrict);
>> 
>> What gives?
> 
> Not to start anything, but fwiw GNU defines theirs as const, too.  And

Really? Quoting from /usr/include/iconv.h :

extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
                     size_t *__restrict __inbytesleft,
                     char **__restrict __outbuf,
                     size_t *__restrict __outbytesleft);
(this is on Debian 3.0 - Woody, glibc-2.2.5-6).

Bye	Pavel