Subject: Re: iconv(3) prototype
From: Christos Zoulas <>
List: tech-userlevel
Date: 07/28/2004 08:29:15
On Jul 28,  3:54pm, ("T.SHIOZAKI") wrote:
-- Subject: Re: iconv(3) prototype

| Quite so.
| The point of this problem is that the 2nd argument of iconv()
| is "a pointer of a pointer".  "char *" can be converted to
| "const char *" explicitly, but "char **" cannot be converted to
| "const char **" without warning.
| If the code is written so as not to get warnings with our iconv(),
| it will get warnings with X/Open iconv().  v.v.
| Really, here is the sole portable way: ((size_t (*)())iconv)(cd, &src, ....);
| This is not the essence of this problem though.
| So, I will change it, ok?

I guess; but it looks like ours is semantically more correct.