path: root/com32/lib/memmem.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Update memmem functionLiu Aleaxander2010-10-091-18/+27
| | | | | | | | | | | | | The current memem implementation can not handle the case that the length of the third parameter(needle) is equal *ONE*. So that the current strstr implemention doesn't work when the lenght of substring is ONE. For example, strstr("linux", "l") it will return NULL instead of "linux", which is not right. This code is stolen from klibc ;) Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
* Run Nindent on com32/lib/memmem.cH. Peter Anvin2009-05-291-22/+22
| | | | | | | | | Automatically reformat com32/lib/memmem.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Very first cut at a klibc-derived C library for com32hpa2004-11-101-0/+44