I've tried learn2.com and so far lesson one is good for what you're after. I'm using Visual C++ so there is the overhead of this that's explained too. Rick email me directly if you need more, I'll be able to answer you next week. ----- Original Message ----- From: "David VanHorn" To: Sent: Saturday, October 14, 2000 11:10 AM Subject: C tutorial > > I need a pointer to a good tutorial on the structure of a C program. > > The things that are causing me problems aren't the programming itself, but > are closer to the compiler than the code. > > For example, how do you take code out of the main file, and make it a library? > > In assembler, it would be a simple include directive, and nothing special > need be done to the code that was snipped and exported, but this seems not > to be the case in C. > > I developed a complete chip init as a series of procedures, and put that in > a file called init.c, and used: include "init.c" in the main file, but the > compiler is telling me that within init.c, the port names are undefined. > > Everything I've found on the web so far, gives me way too much information > on the programming itself, and none on how to structure the program. (Or, > they assume that any program will be in one file) > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads > > > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads