wrote:
> P.S. Is there anyway to get rid of that pesky "function returns adress
> of local variable" warning?
Yes. Don't return the address of a local variable.
(The variable evaporates when you leave the function, so the address
becomes meaningless, and any use of it -- /any/ use of it -- permits
the implementation to do whatever it likes. If you're lucky, you'll
get an immediate loud program failure. If not, you're code will break
later, incomprehensibly and possibly expensively.)
--
Chris "where does a flame go when it's blown out?" Dollin
"I'm still here and I'm holding the answers" - Karnataka, /Love and Affection/