Skip to content

Instantly share code, notes, and snippets.

@qleguennec
Created December 7, 2015 17:17
Show Gist options
  • Select an option

  • Save qleguennec/99287d61f6039545c701 to your computer and use it in GitHub Desktop.

Select an option

Save qleguennec/99287d61f6039545c701 to your computer and use it in GitHub Desktop.
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_striter.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qle-guen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/25 07:57:08 by qle-guen #+# #+# */
/* Updated: 2015/11/25 08:01:54 by qle-guen ### ########.fr */
/* */
/* ************************************************************************** */
#include <libft.h>
void ft_striter(char *s, void (*f) (char *s))
{
ft_striteri(s, lambda(void, (unsigned int i, char *s)
{
(void) i;
f(s);
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment