Hi Rasmus, On 2026-07-01T17:15:27, Rasmus Villemoes <[email protected]> wrote: > string: add strcasestr() > > While this is not likely needed by any 'real' driver code, a later > convenience addition to the 'config' command will need this. As usual, > the linker will throw it away if nothing actually uses it, so it > should have no size impact when not used. > > Signed-off-by: Rasmus Villemoes <[email protected]> > > include/linux/string.h | 1 + > lib/string.c | 27 +++++++++++++++++++++++++++ > 2 files changed, 28 insertions(+)
> diff --git a/include/linux/string.h b/include/linux/string.h > @@ -77,6 +77,7 @@ extern __kernel_size_t strlen(const char *); > #ifndef __HAVE_ARCH_STRNLEN > extern __kernel_size_t strnlen(const char *,__kernel_size_t); > #endif > +char *strcasestr(const char *, const char *); I've been trying to add proper function docs to newly added ones, so we can clearly see the behaviour. Despite these being well-known function, they sometimes differ in how they handle edge-conditions. Also you could group this with the strstr()/strnstr() declarations a few lines above, so it sits alongside its siblings. Regards, Simon

