2021-09-08 21:48:00 +10:00
|
|
|
#ifndef STDIO_HEADER
|
|
|
|
#define STDIO_HEADER
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STDLIB_HEADER
|
|
|
|
#define STDLIB_HEADER
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2021-09-09 17:10:24 +10:00
|
|
|
#ifndef STRING_HEADER
|
|
|
|
#define STRING_HEADER
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2021-09-08 21:48:00 +10:00
|
|
|
#ifndef COMMON_HEADER
|
|
|
|
#define COMMON_HEADER
|
|
|
|
|
2021-09-09 17:10:24 +10:00
|
|
|
/* Checks if a pointer assigned through dynamic memory allocation is NULL */
|
2021-09-08 21:48:00 +10:00
|
|
|
void checkNullPointer(void *ptr);
|
|
|
|
|
2021-09-09 17:10:24 +10:00
|
|
|
/* Opens a file and checks if the file is safe to use */
|
|
|
|
FILE *safeFileOpen(FILE **f, char *fileName, char *mode);
|
|
|
|
|
2021-09-08 21:48:00 +10:00
|
|
|
#endif
|