Hi Bruno, Paul,

On 2026-02-20T16:02:13-0800, Paul Eggert wrote:
> On 2026-02-20 15:47, Bruno Haible via Gnulib discussion list wrote:
> >    * The purpose of this code is NOT to get a pointer to the NUL byte.
> >      It is to get a pointer to the last substring of length 4 of the string.
> 
> Right, and if we're going to change that kind of code, I suggest this:
> 
>   bool output_is_library = str_endswith (output_file, ".dll");
> 
> instead of using strnul.

Yep, that's the change I was mentioning I'd like to do afterwards.

We could change now to strnul() and later to str_endswith(), or change
directly to str_endswith(); whatever you prefer.


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es>

Attachment: signature.asc
Description: PGP signature

Reply via email to