Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | memcpy asm for i386 and x86_64 | Rich Felker | 2012-08-11 | 2 | -0/+51 |
| | |||||
* | remove unused but buggy code from strstr.c | Rich Felker | 2012-08-11 | 1 | -10/+0 |
| | |||||
* | remove buggy short-string wcsstr implementation; always use twoway | Rich Felker | 2012-08-11 | 1 | -9/+0 |
| | | | | | | since this interface is rarely used, it's probably best to lean towards keeping code size down anyway. one-character needles will still be found immediately by the initial wcschr call anyway. | ||||
* | optimize mempcpy to minimize need for data saved across the call | Rich Felker | 2012-07-31 | 1 | -2/+1 |
| | |||||
* | make strerror_r behave nicer on failure | Rich Felker | 2012-06-20 | 1 | -2/+8 |
| | | | | | | | if the buffer is too short, at least return a partial string. this is helpful if the caller is lazy and does not check for failure. care is taken to avoid writing anything if the buffer length is zero, and to always null-terminate when the buffer length is non-zero. | ||||
* | fix overrun (n essentially ignored) in wcsncmp | Rich Felker | 2012-05-26 | 1 | -1/+1 |
| | | | | bug report and solution by Richard Pennington | ||||
* | fix failure of strrchr(str, 0) | Rich Felker | 2012-05-26 | 1 | -1/+1 |
| | | | | bug report and solution by Richard Pennington | ||||
* | add all missing wchar functions except floating point parsers | Rich Felker | 2012-03-01 | 9 | -0/+71 |
| | | | | | these are mostly untested and adapted directly from corresponding byte string functions and similar. | ||||
* | add dummied strverscmp (obnoxious GNU function) | Rich Felker | 2011-09-11 | 1 | -0/+7 |
| | | | | | | 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. | ||||
* | fix wrong type for wcsrchr argument 2 | Rich Felker | 2011-06-13 | 1 | -1/+1 |
| | |||||
* | fix strncat and wcsncat (double null termination) | Rich Felker | 2011-05-22 | 3 | -3/+3 |
| | | | | also modify wcsncpy to use the same loop logic | ||||
* | fix wcsncpy writing past end of buffer | Rich Felker | 2011-05-22 | 1 | -1/+1 |
| | |||||
* | function signature fix: add const qualifier to mempcpy src arg | Rich Felker | 2011-04-26 | 1 | -1/+1 |
| | |||||
* | implement memrchr (nonstandard) and optimize strrchr in terms of it | Rich Felker | 2011-04-13 | 2 | -4/+15 |
| | |||||
* | fix misplaced *'s in string functions (harmless) | Rich Felker | 2011-04-07 | 3 | -3/+3 |
| | |||||
* | fix prototype for strsep | Rich Felker | 2011-04-06 | 1 | -0/+1 |
| | |||||
* | fix misaligned read on early string termination in strchr | Rich Felker | 2011-04-05 | 1 | -1/+2 |
| | | | | | | this could actually cause rare crashes in the case where a short string is located at the end of a page and the following page is not readable, and in fact this was seen in gcc compiling certain files. | ||||
* | fix serious bug in strchr - char signedness | Rich Felker | 2011-04-03 | 1 | -9/+11 |
| | | | | | | search for bytes with high bit set was giving (potentially dangerous) wrong results. i've tested, cleaned up, and hopefully sped up this function now. | ||||
* | fix all implicit conversion between signed/unsigned pointers | Rich Felker | 2011-03-25 | 6 | -20/+16 |
| | | | | | | | sadly the C language does not specify any such implicit conversion, so this is not a matter of just fixing warnings (as gcc treats it) but actual errors. i would like to revisit a number of these changes and possibly revise the types used to reduce the number of casts required. | ||||
* | fix broken wmemchr (unbounded search) | Rich Felker | 2011-03-17 | 1 | -1/+1 |
| | |||||
* | fix missing prototype for strsignal | Rich Felker | 2011-02-26 | 1 | -0/+1 |
| | |||||
* | add implementation of memccpy function | Rich Felker | 2011-02-24 | 1 | -0/+32 |
| | |||||
* | fix backwards conditional in stpncpy | Rich Felker | 2011-02-24 | 1 | -1/+1 |
| | | | | | | this only made the function unnecessarily slow on systems with unaligned access, but would of course crash on systems that can't do unaligned accesses (none of which have ports yet). | ||||
* | more header cleanup and conformance fixes - string.h | Rich Felker | 2011-02-14 | 1 | -0/+1 |
| | |||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 60 | -0/+1054 |