summaryrefslogtreecommitdiff
path: root/ft_strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strdup.c')
-rw-r--r--ft_strdup.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/ft_strdup.c b/ft_strdup.c
index dbad4af..89a41eb 100644
--- a/ft_strdup.c
+++ b/ft_strdup.c
@@ -27,32 +27,3 @@ char *ft_strdup(const char *s)
ft_strlcpy(ptr, s, ft_strlen(s) + 1);
return (ptr);
}
-/*
-#include <stdio.h>
-#include <string.h>
-
-int main(void)
-{
- char s27[] = "Hello";
- char s28[] = "Hello";
- char *result1;
- char *result1b;
- char emptystring[] = "";
- char *result2;
- char *result2b;
-
- printf("################ strdup ##############\n");
- result1 = ft_strdup(s27);
- printf("ft_strdup: %s\n", result1);
- free(result1);
- result1b = strdup(s28);
- printf("strdup: %s\n", result1b);
- free(result1b);
- result2 = ft_strdup(emptystring);
- printf("ft_strdup: %s\n", result2);
- free(result2);
- result2b = strdup(emptystring);
- printf("strdup: %s\n", result2b);
- free(result2b);
-}
-*/