2016-01-20 09:45:06 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief prototype of strnlen() from OpenBSD
|
|
|
|
*/
|
|
|
|
|
2019-01-14 10:14:20 +00:00
|
|
|
#ifndef __COMPAT_STRNLEN_H
|
|
|
|
#define __COMPAT_STRNLEN_H
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2016-01-20 09:45:06 +00:00
|
|
|
#ifndef HAVE_STRNLEN
|
2017-11-01 07:05:10 +00:00
|
|
|
#include <stddef.h>
|
2016-02-16 06:11:57 +00:00
|
|
|
size_t strnlen(const char *str, size_t maxlen);
|
2016-01-20 09:45:06 +00:00
|
|
|
#endif
|
2019-01-14 10:14:20 +00:00
|
|
|
|
|
|
|
#endif
|