summaryrefslogtreecommitdiff
path: root/ft_strdup.c
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2026-02-05 12:18:33 +0100
committeryctct <yctct@yctct.com>2026-02-05 12:18:33 +0100
commit472b8f20c0f74d20dbb434abce10ee86054b9975 (patch)
tree95625c0ba5a7f999c9add7f9bd55bb0f0b4dc173 /ft_strdup.c
parent8403fab94b17bc63bc193037c8777b9074707287 (diff)
Remove testsHEADmain
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);
-}
-*/