GrafX2 2.9.3227
The ultimate 256-color painting program
gfx2mem.c File Reference
#include <stdlib.h>
#include "gfx2mem.h"
#include "gfx2log.h"
+ Include dependency graph for gfx2mem.c:

Functions

void * GFX2_malloc_and_log (size_t size, const char *file, unsigned line)
 malloc() memory and log in case of error More...
 
int GFX2_is_mem_filled_with (const void *p, unsigned char b, size_t len)
 checks if a memory zone is filled with the same byte value More...
 

Function Documentation

◆ GFX2_malloc_and_log()

void * GFX2_malloc_and_log ( size_t  size,
const char *  file,
unsigned  line 
)

malloc() memory and log in case of error

References GFX2_ERROR, GFX2_Log(), and NULL.

◆ GFX2_is_mem_filled_with()

int GFX2_is_mem_filled_with ( const void *  p,
unsigned char  b,
size_t  len 
)

checks if a memory zone is filled with the same byte value

Referenced by Load_SCR(), and Test_Read_Write_bytes().