[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
iconv() 2.1 -> 2.2 prototype change
From: |
Petr Vandrovec |
Subject: |
iconv() 2.1 -> 2.2 prototype change |
Date: |
Tue, 3 Oct 2000 19:16:32 MET-1 |
Hi,
was change to iconv() prototype mandated by some standard?
In 2.1, it was
size_t iconv(iconv_t cd, const char** inbuf, size_t* inbytesleft,
char** outbuf, size_t* outbytesleft);
so I could pass constant string into function without big headache.
But in 2.2 it is
size_t iconv(iconv_t cd, char** inbuf, size_t* inbytesleft, ...);
Due to this I have to use really non-portable
'(char**)(unsigned long)&inbuf' to suppress warning about dropping
'const' modifier :-( Unfortunately, gcc does not have const_cast in
C...
Thanks,
Petr Vandrovec
address@hidden
P.S.: BTW, on AIX 4.3 (bos430 src/bos/usr/include/iconv.h 1.11),
prototype also contains 'const' -
extern size_t iconv(iconv_t, const char**, size_t*, char**, size_t*);
I have no other iconv system around.
- iconv() 2.1 -> 2.2 prototype change,
Petr Vandrovec <=