Added
Link Here
|
1 |
--- display.c.orig 2022-12-31 01:22:36 UTC |
2 |
+++ display.c |
3 |
@@ -8,6 +8,11 @@ display_system (void) |
4 |
|
5 |
FILE *f; |
6 |
f = fopen("New.System", "w"); |
7 |
+ if (f == NULL) |
8 |
+ { |
9 |
+ perror("New.System"); |
10 |
+ exit(1); |
11 |
+ } |
12 |
|
13 |
fprintf(f," SYSTEM CHARACTERISTICS\n"); |
14 |
fprintf(f,"Mass of central star: %6.3f solar masses\n", stellar_mass_ratio); |