in reply to Re: Inline::C demonstration for C programmers
in thread Inline::C demonstration for C programmers
Why wouldn't they? They're not on the stack, they're part of the program's image. Memory doesn't just free itself.
In fact, quite the opposite problem would occur had the OP used malloc or new to create the returned string: a memory leak.
|
|---|