maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_striteri.c File Reference
#include "libft.h"
Include dependency graph for ft_striteri.c:

Go to the source code of this file.

Functions

void ft_striteri (char *s, void(*f)(unsigned int, char *))
 

Function Documentation

◆ ft_striteri()

void ft_striteri ( char *  s,
void(*)(unsigned int, char *)  f 
)

Definition at line 28 of file ft_striteri.c.

29{
30 unsigned int i;
31
32 i = 0;
33 if (!s || !f)
34 return ;
35 while (s[i] != '\0')
36 {
37 f(i, &s[i]);
38 i++;
39 }
40}