We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bde81dd commit f0c9173Copy full SHA for f0c9173
sorting/merge_sort.c
@@ -36,7 +36,7 @@ void merge(int *a, int l, int r, int n)
36
if (b == NULL) /* return to main if can't malloc memory */
37
{
38
printf("Can't Malloc! Please try again.");
39
- exit(1);
+ exit(EXIT_FAILURE);
40
}
41
int c = l;
42
int p1, p2;
0 commit comments