From: Ben Laurie <[EMAIL PROTECTED]>
ben> > >> Like strstr()...
ben> >
ben> > bl> Just because the C libraries are broken doesn't mean we should
ben> > bl> break ours. In Apache we fix these rather than live with them.
ben> >
ben> > How exactly do you fix them?
ben>
ben> By wrapping them with correctly declared functions.
So, either:
const char *correct_strstr(const char *s1, const char *s2)
{
return strstr(s1, s2);
}
or:
char *correct_strstr(char *s1, const char *s2)
{
return strstr(s1, s2);
}
Is that right? Both of those have problems. The first because you
can't manipulate the result even if the strings you gave from the
start are non-const, and the second because you can't give it a 'const
char *' as first argument...
--
Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]