[Top][All Lists]

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

[Bug-gnulib] Re: Add strdup.h.

From: Simon Josefsson
Subject: [Bug-gnulib] Re: Add strdup.h.
Date: Wed, 25 Feb 2004 18:59:03 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> Bruno Haible <address@hidden> writes:
>> Looks perfect. We'll commit your patch once you have sent back the FSF form.
> The copyright clerk confirmed they have received it now.  Thanks!

I noticed strdup.h was missing from the last patch...  Here it is.
/* strdup.h -- duplicate a string
   Copyright (C) 2004 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#ifndef STRDUP_H_
# define STRDUP_H_

/* Get strdup, if available. */
#include <string.h>

#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
/* Duplicate S, returning an identical malloc'd string.  */
char *strdup (const char *s);

#endif /* !STRDUP_H_ */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]