summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strrchr.c
Commit message (Collapse)AuthorAgeFilesLines
* Renumber clauses to reduce diffs to other versionsemaste2013-05-281-1/+1
| | | | | NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier.
* Change index() and rindex() to a weak alias.ed2012-01-051-1/+1
| | | | | | | | This allows people to still write statically linked applications that call strchr() or strrchr() and have a local variable or function called index. Discussed with: bde@
* Merge index() and strchr() together.ed2012-01-031-2/+52
| | | | | | | | | | | | | | | | | As I looked through the C library, I noticed the FreeBSD MIPS port has a hand-written version of index(). This is nice, if it weren't for the fact that most applications call strchr() instead. Also, on the other architectures index() and strchr() are identical, meaning we have two identical pieces of code in the C library and statically linked applications. Solve this by naming the actual file strchr.[cS] and let it use __strong_reference()/STRONG_ALIAS() to provide the index() routine. Do the same for rindex()/strrchr(). This seems to make the C libraries and static binaries slightly smaller, but this reduction in size seems negligible.
* Fix the style of the SCM ID's.obrien2002-03-221-0/+3
| | | | I believe have made all of libc .c's as consistent as possible.
* Added some 2-line source files to get a direct correspondencebde1997-10-151-0/+2
between sources and objects. This will be used to avoid messy special cases in Makefile.inc.
OpenPOWER on IntegriCloud