aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/string.h
Commit message (Collapse)AuthorAgeFilesLines
* [libc] Add stpcpy()Michael Brown2024-05-311-0/+1
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Provide an unoptimised generic_memcpy_reverse()Michael Brown2020-07-071-0/+2
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Allow CPU architectures to use unoptimised string functionsMichael Brown2016-04-191-6/+8
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown2015-03-021-1/+1
| | | | | | | Relicense files for which I am the sole author (as identified by util/relicense.pl). Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Rewrite string functionsMichael Brown2015-02-161-35/+42
| | | | | | | | | | | | Some of the C library string functions have an unknown provenance. Reimplement all such functions to avoid potential licensing uncertainty. Remove the inline-assembler versions of strlen(), memswap(), and strncmp(); these save a minimal amount of space (around 40 bytes in total) and are not performance-critical. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Remove unused string functionsMichael Brown2015-02-161-6/+0
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Convert memcpy() from a macro to an inline functionMichael Brown2012-11-121-0/+1
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* use malloc attributeHolger Lubitz2007-08-201-3/+3
|
* strdup and strndup call malloc and are not pureHolger Lubitz2007-08-021-2/+2
|
* declare pointers passed to string functions as nonnullHolger Lubitz2007-08-021-24/+24
|
* set __pure attribute where possibleHolger Lubitz2007-08-021-16/+16
|
* Add strcspn() and strndup()Michael Brown2007-07-081-0/+2
|
* Move tolower() etc to ctype.h as per ISO CMichael Brown2007-01-261-27/+2
|
* 4.3BSD says that bcopy and bzero are defined in strings.h, not string.hMichael Brown2007-01-191-1/+0
|
* Move strerror() prototype to string.h, where it belongsMichael Brown2006-12-201-0/+2
|
* Added strdup()Michael Brown2006-12-081-0/+1
|
* Marked memcmp/strcmp as "pure" functions, to allow gcc to optimiseMichael Brown2006-11-271-3/+5
| | | | | | | | away code such as if ( strcmp ( some_string, "some_value" ) != 0 ) { DBG ( "Bad value received!" ); }
* Prototype now clashes with the macro in arch/i386.Michael Brown2006-04-241-1/+0
|
* Need stddef.h to get size_tMichael Brown2005-04-171-0/+1
|
* Initial revisionMichael Brown2005-03-081-0/+68