|  | 
										tgrekov-libft
									 
										HIVE libft Oct 2023
									 | 
Definition in file ft_strmapi.c.
#include "libft.h"Go to the source code of this file.
| Functions | |
| char * | ft_strmapi (char const *s, char(*f)(unsigned int, char)) | 
| Allocates and creates a new string from the output of function fprocessing each character of strings. | |
| char * ft_strmapi | ( | char const * | s, | 
| char(*)(unsigned int, char) | f | ||
| ) | 
Allocates and creates a new string from the output of function f processing each character of string s. 
This function iterates from end to start
| [in] | s | Null-terminated string to iterate over | 
| [in] | f | Pointer to a function that returns each character of the new string individually, provided the index and value of each original character | 
| char* | Null-terminated string populated from successive applications of f. Result of malloc. | 
Definition at line 34 of file ft_strmapi.c.
References ft_calloc(), and ft_strlen().