This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: strchr()
Like make it conform to C89 by appropriate #include, omitting conflicting
declarations? Pretty difficult to make it simultaneously backward
compatible further than that.
----- Original Message -----
From: "Allin Cottrell" <cottrell@ricardo.ecn.wfu.edu>
To: <glibc-linux@ricardo.ecn.wfu.edu>
Sent: Monday, March 27, 2000 12:25 PM
Subject: strchr()
> I came across some oldish code that didn't compile because
>
> macro `strchr' used without args
>
> I know I can fix this just by deleting the offending line:
>
> extern char *strchr();
>
> but can anyone tell me the right way to bracket out this
> declaration so the code will compile on all systems? Thanks.
>
> --
> Allin Cottrell
> Department of Economics
> Wake Forest University, NC
>