summaryrefslogtreecommitdiff
path: root/ft_strmapi.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_strmapi.c
parent8403fab94b17bc63bc193037c8777b9074707287 (diff)
Remove testsHEADmain
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));
-}
-*/