Writing a wrapper to malloc with void as return type

I have a requirement to write a wrapper to malloc with return type as void . the exact signature of the function would be

void mymalloc_wrapper(size_t size).

Any suggestion as to how this can be achieved/is it possible at all ?.

Source: c#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.