Reuben Thomas wrote:
> In getcwd.c I find the following comment:

The Gnulib documentation
https://www.gnu.org/software/gnulib/manual/html_node/getcwd.html
points to the specification. That's usually a more solid reference than
a comment in the code.

> In GNU, if BUF is NULL, an array is allocated with 'malloc'; the array is
> > SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary.
> >
> 
> However, as far as I can see from the code, it always allocates if BUF is
> NULL.

What is your question?

Bruno




Reply via email to