Browse Source

fix fprintf in tests

pull/20/head
Chris Cromer 3 years ago
parent
commit
a04bf8a8e0
Signed by: cromer GPG Key ID: 39CC813FF3C8708A
  1. 6
      test/test.c

6
test/test.c

@ -59,17 +59,17 @@ int main(int argc, char **argv) {
test_case = malloc(sizeof(int) * n);
if (test_case == NULL) {
fprintf("Error: Out of heap space!\n");
fprintf(stderr, "Error: Out of heap space!\n");
exit(1);
}
qarray = malloc(sizeof(int) * n);
if (qarray == NULL) {
fprintf("Error: Out of heap space!\n");
fprintf(stderr, "Error: Out of heap space!\n");
exit(1);
}
test_array = malloc(sizeof(int) * n);
if (test_array == NULL) {
fprintf("Error: Out of heap space!\n");
fprintf(stderr, "Error: Out of heap space!\n");
exit(1);
}

Loading…
Cancel
Save