OT: CS education gone wrong (Was: Re: TDD is BS?)
Adam D. Ruppe
destructionator at gmail.com
Sat Jun 22 05:35:15 PDT 2013
On Saturday, 22 June 2013 at 11:01:53 UTC, Andrej Mitrovic wrote:
> - You're casting a const char * to a char * in the return, you
> should instead provide an overload of strstr taking char* and
> returning char*.
I'm pretty sure the C standard says to do it with the const arg
but mutable return.
http://en.cppreference.com/w/c/string/byte/strstr
More information about the Digitalmars-d
mailing list