This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
K&R style prototypes
- To: egcs-bugs at cygnus dot com
- Subject: K&R style prototypes
- From: Jimen Ching <jching at flex dot com>
- Date: Thu, 2 Apr 1998 21:23:49 -1000 (HST)
I compile the following with:
gcc -ansi -pedantic-errors code.c
and it didn't give any errors, how come?
--jc
-------------------------------------------------
struct s_struct
{
float f;
};
void
func(s, f)
struct s_struct *s;
float f;
{
s->f = f;
}
int
main()
{
struct s_struct s;
func(&s, 1.9);
return 0;
}
--
Jimen Ching (WH6BRR) jching@flex.com wh6brr@uhm.ampr.org