Em 4/2/2010 07:32, Matt Rhys-Roberts escreveu: > While getting to grips with C18 quite happily, I discovered = > (http://users.aber.ac.uk/auj/voidmain.shtml) that using "void main = > (void)" , as most C18 demo code does, is frowned upon. > > I'm asking any seasoned C18 philosophers out there; is this cause for = > concern? I don't know enough about C yet to predict whether this is = > really an issue or not, purely in the case of using C18 for PIC developme= nt. > > Regards, > Matt > = > Don't worry, PIC18 doesn't use any return value from main(). If "main" ever returns, the "_startup" routine will execute "return 0", which will underflow the stack and generate a reset, unless your call stack is not empty when main returns. Best regards, Isaac __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger = http://br.beta.messenger.yahoo.com/ = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist