View Single Post
  #3   Spotlight this post!  
Unread 20-02-2007, 11:43
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: old style functions??

Quote:
Originally Posted by buddy.smith View Post
Why don't you post the code?

Here's an "old style" function declaration:
Code:
int myFunc( param1, param2, param3)
{
     char param1;
     int param2;
     short param3;
     printf("Got %d %d %d\n", param1, param2, param3);
}
Close, for "old style" function declarations the parameters went between the ) and the {:

Code:
int myFunc( param1, param2, param3)
     char param1;
     int param2;
     short param3;
{
     printf("Got %d %d %d\n", param1, param2, param3);
}
Usually you get this error when the { character has been omitted.