Re: [PATCH v4 01/10] string: provide strends()
From: Andy Shevchenko
Date: Tue Nov 18 2025 - 05:15:44 EST
On Tue, Nov 18, 2025 at 11:47 AM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
> On Mon, Nov 17, 2025 at 9:33 PM Kees Cook <kees@xxxxxxxxxx> 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