[PATCH v2 01/10] string: provide strends()

Andy Shevchenko andy.shevchenko at gmail.com
Wed Oct 22 06:33:29 PDT 2025


On Wed, Oct 22, 2025 at 4:11 PM Bartosz Golaszewski <brgl at bgdev.pl> wrote:
>
> Implement a function for checking if a string ends with a different
> string and add its kunit test cases.

...

> --- a/include/linux/string.h
> +++ b/include/linux/string.h
> @@ -562,4 +562,6 @@ static inline bool strstarts(const char *str, const char *prefix)
>         return strncmp(str, prefix, strlen(prefix)) == 0;
>  }
>
> +bool strends(const char *str, const char *suffix);

Why not static inline as strstarts()?

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list