hmm, structures as well as all other variables are global when they are defined outside a function (in most cases). This example creates two global structures and two local structures :
typedef struct STR { int member; }STR; STR global1,global2; int main() { STR local1,local2; ... }
Easy as that. Hope I answered your question.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more