src/ErrorsHandling.c
/*
 * FUNCTION NAME: checkMemory
 *
 * Description:
 * Function checks, if the memory has been properly allocated.
 * If not, then quit the program.
 */
FUNCTION NAME: checkMemory
Description:
Function checks, if the memory has been properly allocated.
If not, then quit the program.
FUNCTION NAME : checkMemory Description : Function checks if the memory has been properly allocated . If not then quit the program .
void checkMemory(void* memory)
{
    if (memory == NULL) {
        printSystemError(CANT_ALLOCATE_MEMORY);
        exit(EXIT_FAILURE);
    }
}
void checkMemory ( void * memory ) { if ( memory == NULL ) { printSystemError ( CANT_ALLOCATE_MEMORY ) ; exit ( EXIT_FAILURE ) ; } }
FUNCTION NAME: checkMemory
 Description:
 Function checks, if the memory has been properly allocated.
FUNCTION NAME : checkMemory Description : Function checks if the memory has been properly allocated .