Return to tran.c CVS log | Up to [local] / src / usr.bin / awk |
version 1.11, 2004/12/30 01:52:48 | version 1.12, 2004/12/30 02:06:00 | ||
---|---|---|---|
|
|
||
char *tostring(const char *s) /* make a copy of string s */ | char *tostring(const char *s) /* make a copy of string s */ | ||
{ | { | ||
return (strdup(s)); | char *p; | ||
p = strdup(s); | |||
if (p == NULL) | |||
FATAL("out of space in tostring on %s", s); | |||
return p; | |||
} | } | ||
char *qstring(const char *is, int delim) /* collect string up to next delim */ | char *qstring(const char *is, int delim) /* collect string up to next delim */ |