minishell
ft_striteri.c File Reference
#include <stddef.h>
#include "ft_string.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 16 of file ft_striteri.c.

17 {
18  size_t index;
19 
20  if (s == NULL || f == NULL)
21  return ;
22  index = 0;
23  while (*s != '\0')
24  f(index++, s++);
25 }