56 int StrLen(
const char* string);
57 bool StrIsEqual(
const char* s1,
const char* s2);
58 void MemSet(
void* destination,
int c0,
unsigned int length);
59 void MemCopy(
void* destination,
const void* source,
unsigned int length);
60 unsigned int AllocAndCopy(
char** destination,
const char* source);
61 void Untag(
char* destination,
const char* source,
62 texttag tags[],
unsigned int tagcount);
void MemUsage(long *blocks, long *size, long *peak)
Get memory usage in the global memory list.
bool StrIsEqual(const char *s1, const char *s2)
Compare two null terminated strings to each other.
void * AllocMemSafe(size_t size)
Allocate memory and add it to the global memory list.
void FreeMemSafe(void *block)
Deallocate memory from the global memory list.
void Untag(char *destination, const char *source, texttag tags[], unsigned int tagcount)
int StrLen(const char *string)
Get the length of a null terminated string.
void FreeAllSafe()
Deallocate all memory in the global memory list.
void MemSet(void *dst0, int c0, unsigned int length)
Fill block of memory with a constant value.
unsigned int AllocAndCopy(char **destination, const char *source)
Allocate memory and copy a string into the array.
void MemCopy(void *destination, const void *source, unsigned int length)
Copy a block of memory, handling overlap.
void DetachMemSafe(void *block)
Detach an allocated memory from the global memory list.