- The documentation on the header allow u to see on the files where the header is inclued
25 lines
1 KiB
C
25 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_striteri.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/11/09 13:57:34 by rparodi #+# #+# */
|
|
/* Updated: 2025/09/05 16:17:50 by rparodi ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
void ft_striteri(char *s, void (*f)(unsigned int, char*))
|
|
{
|
|
size_t i;
|
|
|
|
i = 0;
|
|
while (s[i] != '\0')
|
|
{
|
|
f(i, s + i);
|
|
i++;
|
|
}
|
|
}
|