ft_striter.c 1000 B

1234567891011121314151617181920
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_striter.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/06 20:36:37 by mazimi #+# #+# */
  9. /* Updated: 2014/12/02 16:03:28 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void ft_striter(char *s, void (*f)(char *))
  14. {
  15. if (s && f)
  16. while (*s)
  17. f(s++);
  18. }