This commit is contained in:
Camille Chauvet
2023-05-25 17:31:02 +02:00
parent 984f4c59bf
commit f88abe9631
5 changed files with 27 additions and 31 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/27 11:33:25 by cchauvet #+# #+# */
/* Updated: 2023/05/25 15:22:42 by cchauvet ### ########.fr */
/* Updated: 2023/05/25 16:34:22 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -82,13 +82,14 @@ int routine(t_data *data)
void *check_routine(t_data *data)
{
while (true)
while (data->stop == 0)
{
if (routine(data))
{
return (NULL);
}
}
return (NULL);
}
int main(int ac, char **av)