tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_striteri.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striteri.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/28 00:00:09 by tgrekov #+# #+# */
/* Updated: 2023/11/15 23:40:30 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_striteri.c.

#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 *))
 Applies function f to each character of string s.
 

Function Documentation

◆ ft_striteri()

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

Applies function f to each character of string s.

This function iterates from end to start

Parameters
[in,out]sNull-terminated string to iterate over
[in]fPointer to a function where the first and second arguments are the index of the current character and a pointer to the current character

Definition at line 31 of file ft_striteri.c.

References ft_strlen().

Here is the call graph for this function: