+\f/*
+** NEWSTR -- copy a string
+**
+** Parameters:
+** s -- the string to copy.
+**
+** Returns:
+** A copy of the string.
+**
+** Side Effects:
+** none.
+*/
+
+char *
+newstr(s)
+ char *s;
+{
+ char *p;
+
+ p = malloc(strlen(s) + 1);
+ if (p == NULL)
+ {
+ syserr("newstr: cannot alloc memory");
+ exit(EX_OSERR);
+ }
+ strcpy(p, s);
+ return (p);
+}