Browse Source

fix fprintf in tests

Chris Cromer 7 months ago
parent
commit
a04bf8a8e0
Signed by: Chris Cromer <chris@cromer.cl> GPG Key ID: 39CC813FF3C8708A
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      test/test.c

+ 3
- 3
test/test.c View File

@@ -59,17 +59,17 @@ int main(int argc, char **argv) {
59 59
 
60 60
 	test_case = malloc(sizeof(int) * n);
61 61
 	if (test_case == NULL) {
62
-		fprintf("Error: Out of heap space!\n");
62
+		fprintf(stderr, "Error: Out of heap space!\n");
63 63
 		exit(1);
64 64
 	}
65 65
 	qarray = malloc(sizeof(int) * n);
66 66
 	if (qarray == NULL) {
67
-		fprintf("Error: Out of heap space!\n");
67
+		fprintf(stderr, "Error: Out of heap space!\n");
68 68
 		exit(1);
69 69
 	}
70 70
 	test_array = malloc(sizeof(int) * n);
71 71
 	if (test_array == NULL) {
72
-		fprintf("Error: Out of heap space!\n");
72
+		fprintf(stderr, "Error: Out of heap space!\n");
73 73
 		exit(1);
74 74
 	}
75 75
 

Loading…
Cancel
Save