[comp.sys.mac.programmer] THINK C and functions

jwagner@umaxc.weeg.uiowa.edu (Joseph Wagner) (05/22/91)

This may sound like a really easy thing but I'm curious about it.
Does THINK C 4.0 not support having functions declared after the main
function?  I like putting my main part at the beginning and my programs
don't work unless it is at the end. I thought C was less restrictive
than what THINK C is letting me do.

Please e-mail since I don't read this newsgroup.  Thanks in advance.

Joe

--
___________________________________________________________________________
| Joseph Wagner			   |  Women, can't live with them,        |
| jwagner@umaxc.weeg.uiowa.edu     |  Pass the beer nuts - Norm Peterson  |
___________________________________________________________________________

jwagner@umaxc.weeg.uiowa.edu (Joseph Wagner) (05/30/91)

Thanks to all that replied to my original posting. I feel pretty stupid but
I wasn't declaring my functions in my main().  The text book I'm using to
learn C doesn't do it and I've manage to get away without doing it on the
NeXT but THINK is a little more picky, and rightfully so.  Thanks again.

Joe

--
___________________________________________________________________________
| Joseph Wagner			   |  Women, can't live with them,        |
| jwagner@umaxc.weeg.uiowa.edu     |  Pass the beer nuts - Norm Peterson  |
___________________________________________________________________________