Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.lang.c Subject: Re: Declaring externally-defined structures Message-ID: <1991May30.014837.25195@ux1.cso.uiuc.edu> Date: 30 May 91 01:48:37 GMT References: <98256@lll-winken.LLNL.GOV> Sender: usenet@ux1.cso.uiuc.edu (News) Distribution: na Organization: University of Illinois at Urbana Lines: 26 What you want is a global variable. To make a variable global, declare it as normal, but do so outside of the functions. Most people put them at the top, after the #includes and #defines. Example: ---------------------------------------- #include #define MAX 100 int gack; /* global! */ main() { ... ... } ----------------------------------------- Any function in the above file can use the global variable "gack". --- John Gordon Internet: gordon@osiris.cso.uiuc.edu #include gordon@cerl.cecer.army.mil #include