[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] warning: built-in function `index' declared asnon-fun
Re: [avr-gcc-list] warning: built-in function `index' declared asnon-function
Fri, 9 May 2003 16:04:45 +0200
> > If you have access to a linux (or any other Unix variant) and want to
> > out what a function does, you can usually just type
> > man function
For those who don't have a *nix type system at hand, here is a copy of the
man page from my cygwin installation. The library and perhaps the details
will vary according to what C library you have installed, but basically it
is the same as strchr.
`index'--search for character in string
char * index(const char *STRING, int C);
This function finds the first occurence of C (converted to a char)
the string pointed to by STRING (including the terminating null
This function is identical to `strchr'.
Returns a pointer to the located character, or a null pointer if C
not occur in STRING.
`index' requires no supporting OS subroutines.
index is part of the libc library. The full documentation for libc
maintained as a Texinfo manual. If info and libc are
installed at your site, the command
will give you access to the complete manual.
NEWLIB 2003 Mar 31