Name: Anonymous 2010-07-24 6:51
implement
malloc() using the C programming language.
malloc() using the C programming language.
void *malloc(size_t size) { return sbrk(size); }void *malloc(size_t n) { return 0; }
malloc(). The C standard doesn't say that malloc() must ever succeed.
void* malloc(size_t size)
{
/* Create file with random name, `size' large. */
/* mmap file. */
/* Return memory area. */
}
/* Implementation of free using munmap and unlink. */
would you like to fondle my anus?