Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // address where the address to the next free block is stored
- void *next_addr(void *ptr){
- return ptr-4;
- }
- // address to next free block
- void *next_free(void *ptr){
- unsigned int *nxt = next_addr(ptr);
- return (void *) *nxt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement