leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

strdup.c
Go to the documentation of this file.
1#include <string.h>
2#include <stdlib.h>
3
4char *
5strdup(const char *s)
6{
7 char *s1;
8 s1 = malloc(strlen(s) + 1);
9 if (s1 != NULL)
10 strcpy(s1, s); /* RATS: ignore */
11 return s1;
12}
char * strdup(const char *s)
Definition: strdup.c:5