equal
deleted
inserted
replaced
7 #include <stdlib.h> |
7 #include <stdlib.h> |
8 |
8 |
9 #define MAX 12 |
9 #define MAX 12 |
10 |
10 |
11 int read_file (char **); |
11 int read_file (char **); |
|
12 |
12 int init_life (char **); |
13 int init_life (char **); |
|
14 |
13 void free_life (char **); |
15 void free_life (char **); |
|
16 |
14 void show_life (char **); |
17 void show_life (char **); |
15 |
18 |
16 int read_file (char **arena) |
19 int read_file (char **arena) |
17 { |
20 { |
18 int i, j; |
21 int i, j; |
|
22 |
19 char org; |
23 char org; |
20 |
24 |
21 char file[80]; |
25 char file[80]; |
|
26 |
22 FILE *inp = NULL; |
27 FILE *inp = NULL; |
23 |
28 |
24 while (inp == NULL) { |
29 while (inp == NULL) { |
25 printf ("Please enter the file name>> "); |
30 printf ("Please enter the file name>> "); |
26 if (scanf ("%s", file) < 1) |
31 if (scanf ("%s", file) < 1) |