summaryrefslogtreecommitdiff
path: root/ft_substr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_substr.c')
-rw-r--r--ft_substr.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ft_substr.c b/ft_substr.c
index b1431c8..1a3b8ce 100644
--- a/ft_substr.c
+++ b/ft_substr.c
@@ -37,23 +37,3 @@ char *ft_substr(char const *s, unsigned int start, size_t len)
return (ptr);
}
-/*
-#include <stdio.h>
-
-int main(void)
-{
- char s[] = "lorem ipsum dolor sit amet";
- char *ptr;
-
- ptr = ft_substr(s, 6, 6);
- printf("%s\n", ptr);
- free(ptr);
- printf("%s\n", ft_substr("", 0, 1));
- printf("%s\n", ft_substr(s, 15, 1));
- printf("%s\n", ft_substr(s, 0, 10));
- printf("%s\n", ft_substr(s, 7, 10));
- printf("%s\n", ft_substr(s, 7, 0));
- printf("%s\n", ft_substr(s, 0, 0));
- printf("%s\n", ft_substr(s, 400, 20));
-}
-*/