I am trying to create wrapper functions for free
and malloc
in C to help notify me of memory leaks. Does anyone know how to declare these functions so when I call malloc()
and free()
it will call my custom functions and not the standards lib functions?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…