From: Groepaz (groepaz_at_gmx.net)
Date: 2002-12-26 03:32:16
On Thursday 26 December 2002 03:04, MagerValp wrote:
> 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.
i guess thats actually the "k&r" bit here.... that is, k&r allows a lot of
implied stuff than ansi-c dont. ([]yes[]no? :=P)
--
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ [groepaz]
gb / ' \ | | | / \ / \ | __)_ / | \ gp32
cgb \ . / | | |/ ' \| \/ | \ psx
gba \___|_ /|___| |____|\____|__ /_______ /\____|__ / dc
-----\/-----'---------------\/--------\/---------\/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
http://rr.c64.org/silversurfer home of the RR debugger
ftp.musoftware.de/pub/groepaz cc65 dump site
----------------------------------------------------------------------
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:33:15 CET