On Wed, 18 Feb 1998, Angus Mezick wrote:
> I am really suprised that gcc doesn't report this on a SGI Indy but
> index is a function in the string library. it is a duplicate of
> strchr. i have rename all indexes to ?index (findex, gindex) where
> appropriate. I am suprised that -Wshadow doesn't catch this... argh.
NAME
index, rindex - locate character in string
SYNOPSIS
#include <string.h>
char *index(const char *s, int c);
char *rindex(const char *s, int c);
Linux has it too, doesn't warn here either.
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST