strdup(str) { local out; out = galloc(strlen(str) + 1); if (out == 0) return (0); strcpy(out, str); return (out); }