loop in test
This commit is contained in:
parent
ab4c94ae74
commit
aaac3125e9
1 changed files with 11 additions and 2 deletions
13
test001.c
13
test001.c
|
|
@ -6,7 +6,7 @@
|
|||
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/10/22 20:50:52 by lalgarra #+# #+# */
|
||||
/* Updated: 2025/10/22 21:12:07 by lalgarra ### ########.fr */
|
||||
/* Updated: 2025/10/24 14:34:28 by lalgarra ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -15,8 +15,17 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *line;
|
||||
int stop;
|
||||
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
printf("get_next_line():%s", get_next_line(0));
|
||||
stop = 0;
|
||||
while (!stop)
|
||||
{
|
||||
line = get_next_line(0);
|
||||
printf("%s", line);
|
||||
stop = line == NULL;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue