34char *
ft_strmapi(
char const *s,
char (*f)(
unsigned int,
char))
46 s2[len] = f(len, s[len]);
void * ft_calloc(size_t count, size_t size)
Allocates count * size bytes with malloc and returns a pointer to the result.
size_t ft_strlen(const char *str)
Get length of str.
char * ft_strmapi(char const *s, char(*f)(unsigned int, char))
Allocates and creates a new string from the output of function f processing each character of string ...