1*63eb84d1Schristos /* strdup.h -- duplicate a string
2*63eb84d1Schristos    Copyright (C) 2004 Free Software Foundation, Inc.
3*63eb84d1Schristos 
4*63eb84d1Schristos    This program is free software; you can redistribute it and/or modify
5*63eb84d1Schristos    it under the terms of the GNU General Public License as published by
6*63eb84d1Schristos    the Free Software Foundation; either version 2, or (at your option)
7*63eb84d1Schristos    any later version.
8*63eb84d1Schristos 
9*63eb84d1Schristos    This program is distributed in the hope that it will be useful,
10*63eb84d1Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
11*63eb84d1Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*63eb84d1Schristos    GNU General Public License for more details.
13*63eb84d1Schristos 
14*63eb84d1Schristos    You should have received a copy of the GNU General Public License
15*63eb84d1Schristos    along with this program; if not, write to the Free Software Foundation,
16*63eb84d1Schristos    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
17*63eb84d1Schristos 
18*63eb84d1Schristos #ifndef STRDUP_H_
19*63eb84d1Schristos #define STRDUP_H_
20*63eb84d1Schristos 
21*63eb84d1Schristos /* Get strdup declaration, if available.  */
22*63eb84d1Schristos #include <string.h>
23*63eb84d1Schristos 
24*63eb84d1Schristos #if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
25*63eb84d1Schristos /* Duplicate S, returning an identical malloc'd string.  */
26*63eb84d1Schristos extern char *strdup (const char *s);
27*63eb84d1Schristos #endif
28*63eb84d1Schristos 
29*63eb84d1Schristos #endif /* STRDUP_H_ */
30