|
From: | Paul Eggert |
Subject: | Re: critique of gnulib - string allocation |
Date: | Sun, 8 Sep 2019 16:29:18 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 9/8/19 1:58 PM, Bruno Haible wrote:
Well, then we need variants of the *printf functions that return an 'ssize_t' instead of an 'int'. Do you happen to know the opinion of the glibc people on this topic?
Sorry, no. I imagine it's come up.I would suggest ptrdiff_t rather than ssize_t, as the latter was 'int' on some old 64-bit platforms whereas ptrdiff_t never had that problem, and Glibc malloc now prohibits objects larger than PTRDIFF_MAX bytes.
[Prev in Thread] | Current Thread | [Next in Thread] |