Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!larryc From: larryc@poe.jpl.nasa.gov (Larry Carroll) Newsgroups: comp.windows.x Subject: How to Structure X programs Message-ID: <11616@jpl-devvax.JPL.NASA.GOV> Date: 28 Feb 91 03:26:07 GMT Sender: news@jpl-devvax.JPL.NASA.GOV Organization: Jet Propulsion Lab, AEG/FIST Lines: 5 I've been reading a number of X Windows programs as part of my efforts to learn how to program X applications. One thing I've been trying to figure out is how to structure C programs. For instance, can I create a generic 'main' program that I can reuse with little or no modification? How much (or little) global variables should I use, and for what? And so on.