Re: Should we define _GNU_SOURCE (was Re: GNOME CVS: gnome-common kmaraas)



Owen Taylor <otaylor@gtk.org> writes:

> Doesn't this tend to reduce portability? I.e, someone casually
> uses strndup, after a release, it is found that it doesn't
> exist on most systems, and needs to be added to libsupport or
> replaced.

Adding the functionality (or just the GNU code) to a "crutch" lib for
non GNU systems sounds like the right approach.

Now that I've started using asprintf, I don't know how I got along
without it.  It sure makes handling strings safely easier.

-- 
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94  53 2B 97 F5 D6 4E 39 30



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]