Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!csn!stan!imp
From: imp@solbourne.com (Warner Losh)
Subject: Re: wscrawl compiling problem
Message-ID: <1991May20.171219.6179@solbourne.com>
Organization: Solbourne Computer, Inc., Longmont, CO
References: <1991May17.181846.14774@javelin.sim.es.com>
Date: Mon, 20 May 1991 17:12:19 GMT

In article <1991May17.181846.14774@javelin.sim.es.com> pashdown@javelin.sim.es.com (Pete Ashdown) writes:
>Does anyone have a fix for this compiling error for wscrawl?
[...]
> tmp_ptr = &strpbrk(&strpbrk(&strpbrk(&strpbrk(&strpbrk(
>               current_line, ":")[1], ":")[1], ":")[1], ":")[1], ":")[1];

I changed my copy to read:

	tmp_ptr = strpbrk(strpbrk(strpbrk(strpbrk(strpbrk(current_line,
		":") + 1, ":") + 1, ":") + 1, ":") + 1, ":") + 1;

since that is same thing.  I also think that adding something like
"char *strpbrk();" would also do the trick, but I haven't tried it.

Warner
-- 
Warner Losh		imp@Solbourne.COM
God is an Iron
