Re: [PATCH 2/9] lib: string_helpers: implement a CLASS() for string arrays

From: Andy Shevchenko

Date: Wed Nov 04 2026 - 19:16:53 EST


On Wed, Nov 04, 2026 at 03:03:44PM +0100, Bartosz Golaszewski wrote:
> Provide a CLASS() for managed arrays of strings. It can be used for
> automated release of temporary string arrays when they go out of scope.

...

> +struct kstrarray {
> + char **array;
> + size_t size;
> +};

Hmm... Why struct strarray can't be used?

--
With Best Regards,
Andy Shevchenko