Hi, The what_is_a_stack_pointer_anyway function will work. But if your function has parameters this won't be true. You need to use _asm directive to get it. Regards, Stas.
-----Original Message----- From: Russell K Bulmer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 6:35 PM To: Palm Developer Forum Subject: RE: Re: Getting the Stack Pointer >> So, does anyone know of a way in C/C++ to get the stack pointer? > >void *what_is_a_stack_pointer_anyway () { >int insert_imagination_here; >return &insert_imagination_here; >} > Ahem - yes - obvious when you think about it isn't it - thanks for your help! Cheers Russell -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ************************************************************************************************** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ************************************************************************************************** -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
