Jim Meyering wrote:
> Also, you've made it so upon failure it gives an
> inferior diagnostic, using perror, rather than "error".
Yes, the error message ": memory exhausted" is more understandable
for an end user than "realloc: Cannot allocate memory". End users don't
even know what 'realloc' is.
Robert Millan wrote:
> This makes it easier to import xgethostname.c into an external program.
What's the motivation? removing dependencies?
> 2009-08-29 Robert Millan
>
> * lib/xgethostname.c: Remove `"xalloc.h"'.
> (xgethostname): Use realloc() instead of x2realloc().
>
...
> -
This makes it easier to import xgethostname.c into an external
program.
2009-08-29 Robert Millan
* lib/xgethostname.c: Remove `"xalloc.h"'.
(xgethostname): Use realloc() instead of x2realloc().
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will dec