VMS Help
CC, Messages, RETLOCALADDR

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

 Message        This return statement returns the address of a local
                variable.  The address returned cannot be used by the
                caller in any meaningful way.

 Description    The storage for all local variables is undefined
                after a function has returned.  Returning the address
                of a local variable will cause undefined behavior
                when the return value is used in the calling program.

 User Action    Either change the variable to have static storage
                duration, use malloc to allocate the storage (and
                free it after its use), or change the interface to
                have the caller pass in the address at which data is
                to be stored.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.