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

Diff for /mandoc/compat_strndup.c between version 1.1 and 1.3

version 1.1, 2018/02/27 11:16:23 version 1.3, 2020/06/15 20:19:39
Line 1 
Line 1 
 #include "config.h"  /*      $Id$    */
   /*      $OpenBSD$       */
   
 #if HAVE_STRNDUP  
   
 int dummy;  
   
 #else  
   
 /* $Id$ */  
 /* OpenBSD: strndup.c,v 1.2 2015/08/31 02:53:57 guenther Exp */  
 /*  /*
  * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>   * Copyright (c) 2010 Todd C. Miller <millert@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 23  int dummy;
Line 16  int dummy;
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   #include "config.h"
   
 #include <sys/types.h>  #include <sys/types.h>
   
Line 46  strndup(const char *str, size_t maxlen)
Line 40  strndup(const char *str, size_t maxlen)
   
         return copy;          return copy;
 }  }
   
 #endif  

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

CVSweb