On 2024-04-21 09:27, Bruno Haible wrote:
2) Introduce variants of *printf functions, that return a 'ptrdiff_t' instead
    of 'int'. (For results longer than PTRDIFF_MAX, they will fail with error
    ENOMEM, not EOVERFLOW.) This gives rise to several new gnulib modules.

This sounds like a good idea. However, shouldn't output-oriented functions like 'printf' return off_t rather than ptrdiff_t?

Also, I'm tempted to use "#define printf zprintf" and leave most of the source code alone. Perhaps there should be a Gnulib option for that.

Reply via email to