Back to index

nagios-plugins  1.4.16
strnlen.c File Reference
#include <config.h>
#include <string.h>

Go to the source code of this file.


size_t strnlen (const char *string, size_t maxlen)

Function Documentation

size_t strnlen ( const char *  string,
size_t  maxlen 

Definition at line 27 of file strnlen.c.

  const char *end = memchr (string, '\0', maxlen);
  return end ? (size_t) (end - string) : maxlen;

Here is the caller graph for this function: