Re: e: GNOME CVS: gnome-common kmaraas
- From: Lars Wirzenius <liw iki fi>
- To: "gnome-list gnome org" <gnome-list gnome org>
- Subject: Re: e: GNOME CVS: gnome-common kmaraas
- Date: Mon, 11 May 1998 17:13:15 +0300
[ Please don't Cc: public replies to me. ]
Kjartan Maraas:
> Shouldn't it be enough to #include <string.h> to get the declaration for
> strndup()?
strdup and strndup are not defined by the C standard, so it should be
not be surprising if they are not declared in <string.h>. Of course,
strdup is extremely common at least on Unix systems, so it probably
is declared in <string.h>. However, strndup is not as common, I think,
so it might well be missing.
(Sorry, I haven't time to check whether there may be something funny
with the way autoconf tests for strndup.)
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]