"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wml_backend/p2_mp4h/lib/xstrdup.c" between
wml-2.28.0.tar.xz and wml-2.30.0.tar.xz

About: WML (Website META Language) is an extensible Webdesigner’s off-line HTML generation toolkit.

xstrdup.c  (wml-2.28.0.tar.xz):xstrdup.c  (wml-2.30.0.tar.xz)
skipping to change at line 26 skipping to change at line 26
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if HAVE_CONFIG_H #if HAVE_CONFIG_H
# include <config.h> # include <config.h>
#endif #endif
#include <string.h> #include <string.h>
#if defined (__STDC__) && __STDC__ #if defined (__STDC__) && __STDC__
char *xmalloc (size_t); char *xmalloc (size_t);
char *xstrdup (char *string); char *xstrdup (const char *string);
#else #else
char *xmalloc (); char *xmalloc ();
#endif #endif
/* Return a newly allocated copy of STRING. */ /* Return a newly allocated copy of STRING. */
char * char * xstrdup (const char *const string)
xstrdup (string)
char *string;
{ {
return strcpy (xmalloc (strlen (string) + 1), string); return strcpy (xmalloc (strlen (string) + 1), string);
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)