Mail Archives: djgpp/2000/07/24/06:46:12
Kalum Somaratna aka Grendel <kalum AT lintux DOT cx> wrote:
> Some functions like strdup are not available on some platforms.
> So when GNU autoconf detects that it can set a particular #define, which
> says that strdup is not on that system. Then you can supply your own
> strdup function.
Yes. Most GNU packages do exactly that. The FSF actually maintains a
special mini library for this very purpose: a collection of stand-ins
or replacements for missing or unusable functions in the system
libc. It's called 'libiberty', for the fun of linking it by the gcc
option '-liberty'.
You'll find 'libiberty', or parts of it, in many GNU packages, as a
subdirectory. If you program is going to be GPLed, I think you can use
libiberty in it, and avoid implementing your own.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -