% Copyright 1991 by Norman Ramsey. All rights reserved. % See file COPYRIGHT for more information. <
>= char *strsave (char *s); /* returns a pointer to a fresh copy of s */ <<*>>= static char rcsid[] = "$Id: strsave.nw,v 2.18 2006/06/12 21:03:53 nr Exp nr $"; static char rcsname[] = "$Name: v2_11b $"; #include #include #include #include "strsave.h" #include "errors.h" char *strsave (char *s) { char *t = malloc (strlen(s)+1); checkptr(t); strcpy(t,s); return t; }