pntr
Image manipulation library
|
Macros | |
#define | PNTR_MALLOC(size) malloc(size) |
#define | PNTR_FREE(ptr) free(ptr) |
#define | PNTR_REALLOC(ptr, new_size) realloc(ptr, new_size) |
#define | PNTR_MEMCPY(dest, src, n) memcpy(dest, src, n) |
#define | PNTR_MEMSET(str, c, n) memset((str), (c), (n)) |
#define PNTR_FREE | ( | ptr | ) | free(ptr) |
Deallocates the previously allocated memory.
ptr | (void*) pointer to the memory to deallocate |
#define PNTR_MALLOC | ( | size | ) | malloc(size) |
Allocates the requested memory and returns a pointer to it.
size | (size_t) number of bytes to allocate |
#define PNTR_MEMCPY | ( | dest, | |
src, | |||
n | |||
) | memcpy(dest, src, n) |
Copies data from memory area src to the destination memory.
dest | (void*) pointer to the object to copy to |
src | (const void*) pointer to the object to copy from |
n | (size_t) number of bytes to copy |
#define PNTR_MEMSET | ( | str, | |
c, | |||
n | |||
) | memset((str), (c), (n)) |
Copies the character c (an unsigned char) to the first n characters of the string pointed to, by the argument str.
#define PNTR_REALLOC | ( | ptr, | |
new_size | |||
) | realloc(ptr, new_size) |
Attempts to resize the memory block pointed to that was previously allocated.
ptr | (void*) pointer to the memory area to be reallocated |
new_size | (size_t) new size of the array in bytes |