nuttx/libs/libc/string
Juha Niskanen a17bfec43d libc/string: simplify strrchr
Do not call strlen() here. Old implementation iterated
over string twice, if searched for position was at the
beginning. This commit changes strrchr() to scan string
only once, regardless of input.

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2022-05-10 23:29:23 +08:00
..
Kconfig
lib_explicit_bzero.c libs: libc: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
lib_ffs.c
lib_ffsl.c
lib_ffsll.c
lib_fls.c libs: libc: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
lib_flsl.c libs: libc: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
lib_flsll.c libs: libc: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
lib_index.c
lib_isbasedigit.c
lib_memccpy.c
lib_memchr.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_memcmp.c libc: Avoid the compiler generate code call self(memcpy/memmove/memset/memcmp) recursively 2022-04-05 13:25:53 +03:00
lib_memcpy.c libc: Avoid the compiler generate code call self(memcpy/memmove/memset/memcmp) recursively 2022-04-05 13:25:53 +03:00
lib_memmove.c libc: Avoid the compiler generate code call self(memcpy/memmove/memset/memcmp) recursively 2022-04-05 13:25:53 +03:00
lib_memrchr.c
lib_memset.c libc: Avoid the compiler generate code call self(memcpy/memmove/memset/memcmp) recursively 2022-04-05 13:25:53 +03:00
lib_popcount.c
lib_popcountl.c
lib_popcountll.c
lib_rindex.c
lib_skipspace.c
lib_stpcpy.c
lib_stpncpy.c
lib_strcasecmp.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strcasestr.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strcat.c libc/string: Fix the minor style issue 2022-04-05 13:25:53 +03:00
lib_strchr.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strchrnul.c libc/string: simplify strrchr 2022-05-10 23:29:23 +08:00
lib_strcmp.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strcoll.c
lib_strcpy.c
lib_strcspn.c
lib_strdup.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strerror.c libc: Change the return type of strerror from "const char *" to "char *" 2022-03-20 23:02:50 +02:00
lib_strerrorr.c
lib_strlcat.c libc/str:add strlcat to libc 2021-11-26 15:24:35 -03:00
lib_strlcpy.c
lib_strlen.c
lib_strncasecmp.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strncat.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strncmp.c libs/libc/string: unify implementation across the functions 2022-04-23 23:58:54 +08:00
lib_strncpy.c
lib_strndup.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strnlen.c
lib_strpbrk.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strrchr.c libc/string: simplify strrchr 2022-05-10 23:29:23 +08:00
lib_strsep.c
lib_strsignal.c
lib_strspn.c
lib_strstr.c libc/string:add LICENSE info 2022-04-14 21:46:12 +08:00
lib_strtok.c
lib_strtokr.c libc/string: Fix the minor style issue 2022-04-05 13:25:53 +03:00
lib_strxfrm.c
lib_vikmemcpy.c libc: Avoid the compiler generate code call self(memcpy/memmove/memset/memcmp) recursively 2022-04-05 13:25:53 +03:00
Make.defs libs/lbc: remove CHAR_BIT = 16 support 2021-12-13 11:08:28 -06:00