summaryrefslogtreecommitdiff
path: root/include/string.h
AgeCommit message (Collapse)AuthorLines
2012-05-22support _BSD_SOURCE feature test macroRich Felker-5/+12
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
2012-05-09omit declaration of basename wrongly interpreted as prototype in C++Rich Felker-0/+2
the non-prototype declaration of basename in string.h is an ugly compromise to avoid breaking 2 types of broken software: 1. programs which assume basename is declared in string.h and thus would suffer from dangerous pointer-truncation if an implicit declaration were used. 2. programs which include string.h with _GNU_SOURCE defined but then declare their own prototype for basename using the incorrect GNU signature for the function (which would clash with a correct prototype). however, since C++ does not have non-prototype declarations and interprets them as prototypes for a function with no arguments, we must omit it when compiling C++ code. thankfully, all known broken apps that suffer from the above issues are written in C, not C++.
2012-02-24replace prototype for basename in string.h with non-prototype declarationRich Felker-1/+1
GNU programs may expect the GNU version of basename, which has a different prototype (argument is const-qualified) and prototype it themselves too. of course if they're expecting the GNU behavior for the function, they'll still run into problems, but at least this eliminates some compile-time failures.
2012-02-07declare basename in string.h when _GNU_SOURCE is definedRich Felker-0/+1
note that it still will have the standards-conformant behavior, not the GNU behavior. but at least this prevents broken code from ending up with truncated pointers due to implicit declarations...
2012-02-06more locale_t interfaces (string stuff) and header updatesRich Felker-0/+8
this should be everything except for some functions where the non-_l version isn't even implemented yet (mainly some non-ISO-C wcs* functions).
2011-09-11add dummied strverscmp (obnoxious GNU function)Rich Felker-0/+1
programs that use this tend to horribly botch international text support, so it's questionable whether we want to support it even in the long term... for now, it's just a dummy that calls strcmp.
2011-04-26function signature fix: add const qualifier to mempcpy src argRich Felker-1/+1
2011-04-26typo in prototype for mempcpyRich Felker-1/+1
2011-04-26prototype for mempcpyRich Felker-0/+1
2011-04-13implement memrchr (nonstandard) and optimize strrchr in terms of itRich Felker-0/+1
2011-04-06fix prototype for strsepRich Felker-1/+1
2011-03-30add some missing prototypes for nonstandard functions (strsep, clearenv)Rich Felker-0/+1
2011-02-26fix missing prototype for strsignalRich Felker-0/+1
2011-02-24apply feature test protection to memccpyRich Felker-1/+4
2011-02-15prototype for gnu strcasestr (currently a stub)Rich Felker-0/+1
2011-02-14more header cleanup and conformance fixes - string.hRich Felker-7/+12
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+72