version 1.1, 2018/02/27 11:16:23 |
version 1.3, 2020/06/15 20:19:39 |
|
|
#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 |
|
|
* 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 |
|