fix fprintf in tests

This commit is contained in:
Chris Cromer 2018-11-14 20:21:15 -03:00
parent d65c8fbb33
commit a04bf8a8e0
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

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