Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Avoid strlen calls after sprintf



On Mon, Jan 27, 2025 at 5:36 PM Oliver Kiddle <opk@xxxxxxx> wrote:
>
> This change makes use of the return value from sprintf instead of
> calling strlen on the resulting buffer.

In several of these cases it would also be possible to change
dupstring() to dupstring_wlen(), because now the length is known
before dup-ing.




Messages sorted by: Reverse Date, Date, Thread, Author