Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Managing global vars between files
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Malcolm, post: 2387887"] Exactly. The normal rule is that globals are a Bad Thing, but there are always exceptions. What you probably want to do is to declare a few variables g_temp1, g_temp2 etc, with the understanding that their value may be corrupted by a subroutine. Leaf routines can use these variables at will, non-leaf if they do so carefully. That way your precious memory space is reused. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Managing global vars between files
Top