]> git.pond.sub.org Git - empserver/blobdiff - src/lib/gen/strdup.c
Indented with src/scripts/indent-emp.
[empserver] / src / lib / gen / strdup.c
index 59165b26dc610abf82bf8b86587d3910cbbfd5fe..9f5ae17de3b240a6d74af6e2918788a6717bebae 100644 (file)
 #include "gen.h"
 #ifdef NOSTRDUP
 
-char *strdup(char *x) 
+char *
+strdup(char *x)
 {
-        char *y;
+    char *y;
 
-        y=(char *)malloc((sizeof(char)*strlen(x))+1);
-        strcpy(y,x);
-        return y;
+    y = (char *)malloc((sizeof(char) * strlen(x)) + 1);
+    strcpy(y, x);
+    return y;
 }
 #endif /* NOSTRDUP  */
-