This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: inconsistent 'const' in exec{l,v}.
Carlos O'Donell wrote:
> Specifying the function using "const char* const argv[]" as you
> suggest would break existing code by requiring a cast and still
> doesn't specify exactly what is intended by the interface and which
> can't be expressed in C anyway.
Indeed, a proper fix would be for some future revision of the C
standard to allow implicit conversion from "char **" to "const char *
const *", like C++ already does.
That might be expected to take a while. :)