L
lasek
Hi...in some posts i've read...something about using macro rather then
function...but difference ??.
Best regards....
function...but difference ??.
Best regards....
lasek said:Hi...in some posts i've read...something about using macro rather then
function...but difference ??.
lasek said:Thanks a lot for your explanation...but i need more info about how a
variable was handled into a macro...in particular someone wrote that
free()..is a macro or function i don't remember so which difference
between a free() macro and a free() function ??....
remember ny head is very strong ))
Thanks a lot for your explanation...but i need more info about how a
variable was handled into a macro...in particular someone wrote that
free()..is a macro or function i don't remember so which difference
between a free() macro and a free() function ??....
remember ny head is very strong ))
Chris said:Again, maybe, maybe not. If a function is always inlined, it's not going
to exist through the linking or execution phases.
Chris said:john blackburn wrote:
|
| free() is the companion function to malloc() and is definitely a
function.
Maybe, maybe not. It's up to the implementation.
| Look up the library documentation; malloc is used to request memory space
| and initialize a pointer to it and free() is used to release that memory
| space.
free() could be a wrapper around a function that programmers aren't
supposed to call directly, or it might not use a function at all, just
odd compiler magic.
john blackburn said:An interesting point; does that mean that a source debugger will not be able
to trace calls to that function ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.