Son of 'which'
robert at smcvax
robert at smcvax
Mon Sep 2 10:29:00 AEST 1985
>
>Here is a fancified version of the original one.
>
> ..!uw-beaver!teltone!larry
>
>-------- cut here (duh) -------
>
>#include <stdio.h>
>
>char *getenv();
>char *index();
>...
>...
> while(!quit) {
> cp = index(path, ':');
> if (cp == NULL)
> quit++;
For those of you without "index()", the intent of which is to return
a pointer to the first occurrence of str2 in str1 (or NULL if no match),
replace then name "index" with "strchr".
Robert Wallace
infoswx!smcvax!robert
More information about the Comp.sources.unix
mailing list