(School 21, Ecole 42 EXAM02)
Compile and run get_next_line with standart input. then pass several lines. Don't stop gnl and while it's run open new terminal window. and there run leaks
with executable that's on run.Example: leaks get_next_line
. Leaks will find the process and show analytics.
If you want to test get_next_line with some file and not rewrite it: in main
:
close(0);
open("get_next_line.c", O_RDONLY);
while ((bytes_read = get_next_line(&line)) > 0)
...
Don't forget to test:
ft_printf("%.d", 0);
And many other cases.