[BACK]Return to tran.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/tran.c between version 1.11 and 1.12

version 1.11, 2004/12/30 01:52:48 version 1.12, 2004/12/30 02:06:00
Line 399 
Line 399 
   
 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 */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12