This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: FYI: strdup() -> xstrdup()
- To: shebs at cygnus dot com
- Subject: Re: FYI: strdup() -> xstrdup()
- From: DJ Delorie <dj at delorie dot com>
- Date: Mon, 22 Nov 1999 17:36:50 -0500
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <199911222140.NAA24525@andros.cygnus.com>
> Strdup is a standard function,
It's neither ANSI nor POSIX.1(1990). Is it finally in some other
spec?
> and a year from now somebody will forget about xstrdup and use the
> standard function instead.
#define strdup dont_use_strdup__use_xstrdup_instead
...
#undef strdup
strdup()
{
dont_use_strdup__use_xstrdup_instead();
}