28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* 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;
|
|
}
|
|
}
|