From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2002-12-26 03:04:34
>>>>> "CG" == Christian Groessler <cpg_at_aladdin.de> writes: CG> ------- CG> int main(void) CG> { CG> bla(); CG> } CG> bla() CG> { CG> return; CG> } CG> ------- I ain't no C expert, but: CG> gibbon:/net/swamp/zeug/ed/cc65$ cl65 -c x.c CG> x.c(4): Warning: Function call without a prototype Gotta declare a function before you use it or use prototypes. CG> x.c(10): Error: Function `bla' must return a value Functions return an int by default. Declare it as void if you don't want it to return a value. -- ___ . . . . . + . . o _|___|_ + . + . + . Per Olofsson, arkadspelare o-o . . . o + MagerValp_at_cling.gu.se - + + . http://www.cling.gu.se/~cl3polof/ ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-12-26 03:05:34 CET