15 lines
223 B
C
15 lines
223 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int max(int a, int b) {
|
|
if (a > b)
|
|
return a;
|
|
return b;
|
|
}
|
|
|
|
void checkPointer(void* p, char* errMessage) {
|
|
if (!p) {
|
|
fprintf(stderr, "%s", errMessage);
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
} |