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