summaryrefslogtreecommitdiff
path: root/ft_strmapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strmapi.c')
-rw-r--r--ft_strmapi.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/ft_strmapi.c b/ft_strmapi.c
index a7d5c54..da4a1cd 100644
--- a/ft_strmapi.c
+++ b/ft_strmapi.c
@@ -35,34 +35,3 @@ char *ft_strmapi(char const *s, char (*f)(unsigned int, char))
return (newstring);
}
-/*
-
-#include <stdio.h>
-
-char addOne(unsigned int i, char c)
-{
- return (i + c);
-}
-
-int main(void)
-{
- char * s = ft_strmapi("1234", addOne);
- printf("%s\n", s);
- free(s);
- s = ft_strmapi("", addOne);
- printf("%s\n", s);
- free(s);
- return (0);
-}
-char tmp(unsigned int i, char c)
-{
- i = 0;
- return(ft_toupper(c));
-}
-int main(void)
-{
- char s[] = "abc";
-
- printf("%s\n", ft_strmapi(s, tmp));
-}
-*/