Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!decprl!decprl!boyd From: boyd@prl.dec.com (Boyd Roberts) Newsgroups: comp.lang.c Subject: Re: Non-Portable pointer assignment? Message-ID: <1991Jun5.085138.21366@prl.dec.com> Date: 5 Jun 91 08:51:38 GMT References: Sender: news@prl.dec.com (USENET News System) Reply-To: boyd@prl.dec.com (Boyd Roberts) Organization: Digital Equipment Corporation - Paris Research Laboratory Lines: 19 In article , lion@dat1hb.north.de (Daniel Tietze) writes: > roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes: > > > q = strchr(p,'x'); /* this line gets complaints */ > > } > > > Try q=strchr(p,"x"); , this should work. If I'm not mistaken, TC uses > 'x' to denote a string and "x" to denote a char. Eh? 'x' is a char, while "x" is a string. He probably needs: extern char *strchr(); Somewhere before strchr() is used, but within the same scope. Boyd Roberts boyd@prl.dec.com ``When the going gets wierd, the weird turn pro...''