summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/index.c
Commit message (Collapse)AuthorAgeFilesLines
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Brucification: Don't initialize in declaration, make sure extra linesjkh2003-12-181-1/+3
| | | | follow declaration section.
* Do comparison using appropriate casting first, as per SUSv3 (search for firstjkh2003-12-171-1/+2
| | | | [last] character, not int).
* - Update the manual pages of index() and rindex() to showrobert2002-08-301-8/+12
| | | | | | | | | | | | | | | | | | <strings.h> as the associated header file. The prototypes have been moved there from <string.h> because POSIX.1-2001 said so. - Conditionally include either <strings.h> or <string.h> based on whether the [r]index() or str[r]chr() functions are compiled, respectively. - Style(9) tells us to - put a space after the return keyword - to check for a NUL character without using the ! operator. - use NULL instead of (type *)NULL where the compiler knows the type. Apply these rules. - Rather use ANSI-C function definitions than K&R ones. - For index(3), correct second function argument's type; it was declared to be a `const char' before and is now an `int'.
* Remove 'register' keyword.obrien2002-03-211-1/+1
|
* rcsid[]->__FBSDIDobrien2001-11-071-5/+2
|
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.obrien2001-05-241-0/+4
| | | | Do the same for the non-wcs*/wmem* files while I'm here.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+57
OpenPOWER on IntegriCloud