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

Andy Shevchenko
2025-11-18T10:13:45Z

On Tue, Nov 18, 2025 at 11:47 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> On Mon, Nov 17, 2025 at 9:33 PM Kees Cook <kees@kernel.org> wrote:
> > On Wed, Nov 12, 2025 at 02:55:30PM +0100, Bartosz Golaszewski wrote:

...

> > > + * True if @str ends with @suffix. False in all other cases.
> >
> > Maybe added "empty strings never match"?
>
> But they do, please see the test.

I also think that "" == "" (on the same page as Bart). Why should we
make it different?

--
With Best Regards,
Andy Shevchenko