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 docs and comments: Update stale references to COPYING 2021-04-01 21:10:56 -05:00
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 libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_ffsll.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_isbasedigit.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_memccpy.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
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 sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_skipspace.c libs: nxstyle fixes 2021-03-03 18:52:53 -08:00
lib_stpcpy.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_strcspn.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_strndup.c Fix -Werror=nonnull-compare and -Werror=format-truncation= 2022-03-02 15:55:38 +08:00
lib_strnlen.c libs: libc: update licenses to Apache 2021-05-27 08:07:25 +09:00
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 add #undef for some libc function 2021-07-14 15:09:58 -03:00
lib_strstr.c libc/string:add LICENSE info 2022-04-14 21:46:12 +08:00
lib_strtok.c add #undef for some libc function 2021-07-14 15:09:58 -03:00
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