1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.

28 lines
1.1 KiB
C
Raw Normal View History

2023-08-03 23:16:27 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* algo2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ttrave <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/30 20:14:14 by ttrave #+# #+# */
/* Updated: 2023/07/30 20:28:15 by ttrave ### ########.fr */
/* */
/* ************************************************************************** */
#include "header.h"
void ft_print_next(char *str, char **dict)
{
while (*dict != NULL)
{
if (ft_strcmp(str, *dict) == 0)
{
dict++;
ft_putstr(*dict);
return ;
}
dict += 2;
}
}