Subject: Re: iconv(3) prototype
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 07/28/2004 16:39:59
In article <200407281552.LAA28383@Sparkle.Rodents.Montreal.QC.CA>,
der Mouse <mouse@Rodents.Montreal.QC.CA> wrote:
>> If you could convert from "char **" to "const char **",
>> you can convert "const char *" to "char *" _without any cast_.
>
>You can do that already (with memcpy):
>
>	char *a
>	const char *b;
>	memcpy(&a,&b,sizeof(char *));

You are just pushing the casting work to memcpy :-)

christos