libft
Functions
ft_striter.c File Reference
#include "libft.h"
+ Include dependency graph for ft_striter.c:

Go to the source code of this file.

Functions

void ft_striter (char *s, void(*f)(char *))
 Applies a function to characters of a string. More...
 

Function Documentation

◆ ft_striter()

void ft_striter ( char *  s,
void(*)(char *)  f 
)

Applies a function to characters of a string.

Applies the function f to each character of the string passed as argument. Each character is passed by address to f to be modified if necessary.

Parameters
sThe string to iterate.
fThe function to apply to each character of s.

Definition at line 25 of file ft_striter.c.