nuttx/libs/libc/string
Juha Niskanen 47026978bf libs/libc/string: fix memmem() boundary case when needle is at end of haystack
This fixes calls like memmem("hello", 5, "lo", 2);

Also zero-length needle is deemed to exist at beginning of haystack.
This behavior matches memmem() on Linux, FreeBSD, NetBSD and OpenBSD.

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2024-03-11 22:06:19 +08:00
..
CMakeLists.txt cmake: add needed file to cmake script for build sim 2023-11-07 17:39:03 +01:00
Kconfig Kconfig: Change some "default y" to "default !DEFAULT_SMALL" 2023-07-16 14:39:20 -03:00
lib_explicit_bzero.c
lib_ffs.c
lib_ffsl.c
lib_ffsll.c
lib_fls.c
lib_flsl.c
lib_flsll.c
lib_index.c
lib_isbasedigit.c
lib_memccpy.c
lib_memchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memcmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_memmem.c libs/libc/string: fix memmem() boundary case when needle is at end of haystack 2024-03-11 22:06:19 +08:00
lib_memmove.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_mempcpy.c
lib_memrchr.c
lib_memset.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_popcount.c
lib_popcountl.c
lib_popcountll.c
lib_rawmemchr.c
lib_rindex.c
lib_skipspace.c
lib_stpcpy.c
lib_stpncpy.c
lib_strcasecmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcasestr.c compiler/tasking: fix unreachable code on tasking toolchain 2024-01-30 20:53:00 -08:00
lib_strcat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strchrnul.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcoll.c
lib_strcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strcspn.c
lib_strdup.c
lib_strerror.c
lib_strerrorr.c
lib_strlcat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strlcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strlen.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncasecmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncat.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncmp.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strncpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strndup.c
lib_strnlen.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strpbrk.c
lib_strrchr.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
lib_strsep.c
lib_strsignal.c ltp: fix review questions 2023-08-01 09:35:36 -07:00
lib_strspn.c
lib_strstr.c
lib_strtok.c
lib_strtokr.c
lib_strverscmp.c
lib_strxfrm.c
lib_timingsafe_bcmp.c
lib_vikmemcpy.c libs/libc: Breakdown LIBC_BUILD_STRING into specific string operations macro. 2023-08-29 22:55:18 +08:00
Make.defs Revert "libc/lib_bzero:Add bzero prototype." 2023-11-21 07:56:52 -08:00