Back to index

nagios-plugins  1.4.16
xstrndup.h File Reference
#include <stddef.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


char * xstrndup (const char *string, size_t n)

Function Documentation

char* xstrndup ( const char *  string,
size_t  n 

Definition at line 30 of file xstrndup.c.

  char *s = strndup (string, n);
  if (! s)
    xalloc_die ();
  return s;

Here is the call graph for this function:

Here is the caller graph for this function: