strdup() clone for systems/configurations which lack it
[platform/upstream/c-ares.git] / ares_strdup.h
1 #ifndef HEADER_CARES_STRDUP_H\r
2 #define HEADER_CARES_STRDUP_H\r
3 \r
4 /* $Id$ */\r
5 \r
6 /* Copyright 1998 by the Massachusetts Institute of Technology.\r
7  *\r
8  * Permission to use, copy, modify, and distribute this\r
9  * software and its documentation for any purpose and without\r
10  * fee is hereby granted, provided that the above copyright\r
11  * notice appear in all copies and that both that copyright\r
12  * notice and this permission notice appear in supporting\r
13  * documentation, and that the name of M.I.T. not be used in\r
14  * advertising or publicity pertaining to distribution of the\r
15  * software without specific, written prior permission.\r
16  * M.I.T. makes no representations about the suitability of\r
17  * this software for any purpose.  It is provided "as is"\r
18  * without express or implied warranty.\r
19  */\r
20 \r
21 #include "setup.h"\r
22 \r
23 #ifndef HAVE_STRDUP\r
24 extern char *ares_strdup(const char *s1);\r
25 #endif\r
26 \r
27 #endif /* HEADER_CARES_STRDUP_H */\r