[BACK]Return to xstd.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/xstd.c between version 1.12 and 1.13

version 1.12, 2009/03/19 16:40:49 version 1.13, 2009/03/23 14:22:11
Line 21 
Line 21 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
 #include "private.h"  #include "libmdoc.h"
   
 #ifdef __linux__  #ifdef __linux__
 extern  size_t                  strlcpy(char *, const char *, size_t);  extern  size_t                  strlcpy(char *, const char *, size_t);
Line 64  xrealloc(void *ptr, size_t sz)
Line 64  xrealloc(void *ptr, size_t sz)
         return(p);          return(p);
 }  }
   
 void *  
 xcalloc(size_t num, size_t sz)  
 {  
         void            *p;  
   
         if (NULL == (p = calloc(num, sz)))  
                 err(EXIT_FAILURE, "calloc");  
         return(p);  
 }  
   
 char *  char *
 xstrdup(const char *p)  xstrdup(const char *p)

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

CVSweb