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

Diff for /src/usr.bin/make/Attic/util.c between version 1.3 and 1.4

version 1.3, 1996/06/26 05:36:38 version 1.4, 1996/09/02 16:04:21
Line 40 
Line 40 
 }  }
 #endif  #endif
   
 #if defined(sun) || defined(__hpux)  #ifdef ultrix
   #include <string.h>
   
   /* strdup
    *
    * Make a duplicate of a string.
    * For systems which lack this function.
    */
   char *
   strdup(str)
       const char *str;
   {
       size_t len;
   
       if (str == NULL)
           return NULL;
       len = strlen(str) + 1;
       if ((p = malloc(len)) == NULL)
           return NULL;
   
       return memcpy(p, str, len);
   }
   
   #endif
   
   #if defined(sun) || defined(__hpux) || defined(__sgi)
   
 int  int
 setenv(name, value, dum)  setenv(name, value, dum)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4