Subject: Re: __UNCONST(a)
To: Pavel Cahyna <pavel.cahyna@st.ms.mff.cuni.cz>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-userlevel
Date: 07/05/2004 16:59:57
Pavel Cahyna <pavel.cahyna@st.ms.mff.cuni.cz> writes:

> Why not implement strchr as a macro which returns const char * if the
> input is const char * and a non-const * if the input is non-const *?

It violates the C standard.

/Johan