T
temper3243
Hi,
What is wrong with #define myfree(p) {free(p),p=NULL; }
Instead of free , i ask my users to always call myfree. Are there any
limitations with that .
Does it have any speed overhead because of assignment.
Someone (maybe gordon burditt) once said that pointers can be copied,
so it fails. I didn't quite understand that.
What is wrong with #define myfree(p) {free(p),p=NULL; }
Instead of free , i ask my users to always call myfree. Are there any
limitations with that .
Does it have any speed overhead because of assignment.
Someone (maybe gordon burditt) once said that pointers can be copied,
so it fails. I didn't quite understand that.