we pass it a constant string.
git-svn-id: svn://svn.tartarus.org/sgt/halibut@7218
cda61777-01e9-0310-a592-
d414129be87e
void free_word_list(word *w);
void free_para_list(paragraph *p);
word *dup_word_list(word *w);
-char *dupstr(char *s);
+char *dupstr(char const *s);
#define snew(type) ( (type *) smalloc (sizeof (type)) )
#define snewn(number, type) ( (type *) smalloc ((number) * sizeof (type)) )
* 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(char const *s) {
char *r = smalloc(1+strlen(s));
strcpy(r,s);
return r;