Re: [PATCH] tmpdir.c (path_search_alloc): New function.

2020-09-13 Thread Bruno Haible
Hi John, > > +/* Like path_search, except that TMPL is allocated automatically. > > + TMPL may not be null. *TMPL must be freed by the caller, when no > longer needed. > > + After calling this function *TMPL_LEN will be set to the lenght of > *TMPL. */ > > +extern int p

Re: [PATCH] tmpdir.c (path_search_alloc): New function.

2020-09-13 Thread John Darrington
On Sun, Sep 13, 2020 at 01:12:28PM +0200, Bruno Haible wrote: Hi John, As this is your first major contribution to Gnulib, can you please make sure you have signed a copyright assignment with the FSF regarding 'GNULIB'? Yes, I have. > * lib/tmpdir.c (path_search_a

Re: [PATCH] tmpdir.c (path_search_alloc): New function.

2020-09-13 Thread Bruno Haible
Hi John, As this is your first major contribution to Gnulib, can you please make sure you have signed a copyright assignment with the FSF regarding 'GNULIB'? > * lib/tmpdir.c (path_search_alloc): Define new function similar to > path_search, but which allocates the buffer for the result instead

[PATCH] tmpdir.c (path_search_alloc): New function.

2020-09-13 Thread John Darrington
* lib/tmpdir.c (path_search_alloc): Define new function similar to path_search, but which allocates the buffer for the result instead of relying on the caller to preallocate it. *lib/tmpdir.h (path_search_alloc): Declare it. --- lib/tmpdir.c | 127 +++--