I realise this isn&#39;t actually meeting the challenge set, but there is one really easy workaround you could do...<br><br>int strchr(const char *p, char c);<br><br>Just make the return value the offset from the start of p (or -1 if not found) instead of a pointer. That way, on return from the function, p[n] will be const or not const as desired.
<br><br>