Define "does not work"...
--
Mats
Define "does not work"...
--
Mats
As described by MacGyver, the problem is that the compiler believes that this function is a "no-operation" and eliminates the call to it. If you make the function "do something", such as increment argc, print something, return random() or something else that cause the function to actually have at least some side-effect, then you will be able to do it.
Or try with "no optimization" in the compiler, that should make the compiler not remove the call - verify by looking at the assembler output from the compiler.
--
Mats