osdMalloc

osdMalloc

osd

1998 12-05


NAME

osdMalloc, osdCalloc, osdRealloc, osdFree, osdMemset, osdMemcpy - memory operations


SYNOPSIS

void *osdMalloc(long size)

void *osdCalloc(long nelem, long elsize)

void *osdRealloc(void *ptr, long size)

void osdFree(void *ptr)

void *osdMemset(void *s, int c, long n)

void *osdMemcpy(void *s1, const void *s2, long n)

void *osdMemmove(void *s1, const void *s2, long n)

These functions are mappings to malloc(), calloc(), realloc(), free(), memset(), and memcpy().


They are provided as a uniform argument type interface for these functions. This abstraction is required since the supported operating systems do not all require the same argument types for malloc(), calloc(), realloc(), free(), memset(), and memcpy().