compilation under GTK 2.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4198
cda61777-01e9-0310-a592-
d414129be87e
* dupstr is like strdup, but with the never-return-NULL property
* of smalloc (and also reliably defined in all environments :-)
*/
-char *dupstr(char *s) {
+char *dupstr(const char *s) {
char *r = smalloc(1+strlen(s));
strcpy(r,s);
return r;
void *smalloc(int size);
void *srealloc(void *p, int size);
void sfree(void *p);
-char *dupstr(char *s);
+char *dupstr(const char *s);
#define snew(type) \
( (type *) smalloc (sizeof (type)) )
#define snewn(number, type) \