src/compat/strdup.h File Reference

#include "src/main.h"
#include <string.h>
Include dependency graph for strdup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * egg_strdup (const char *s)

Function Documentation

char* egg_strdup ( const char *  s  ) 

Definition at line 27 of file strdup.c.

References egg_memcpy(), and nmalloc.

Referenced by n_strdup().

00028 {
00029   char *d;
00030   size_t l = strlen(s)+1;
00031   d = nmalloc(l);
00032   return egg_memcpy(d, s, l);
00033 }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 7 Sep 2016 for Eggdrop by  doxygen 1.6.1