Skip to content

Commit e40b329

Browse files
committed
1-main.c
1 parent 7c88ef2 commit e40b329

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

0x03-debugging/1-main.c

+3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
* main - causes an infinite loop
55
* Return: 0
66
*/
7+
78
int main(void)
89
{
910
int i;
1011

1112
printf("Infinite loop incoming :(\n");
13+
1214
i = 0;
1315
/**
1416
* while (i < 10)
@@ -17,5 +19,6 @@ int main(void)
1719
* }
1820
*/
1921
printf("Infinite loop avoided! \\o/\n");
22+
2023
return (0);
2124
}

0x03-debugging/main.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
#include <stdio.h>
55

66
void positive_or_negative(int i);
7+
int largest_number(largest);
78

89
#endif /* MAIN_H */

0 commit comments

Comments
 (0)