View Single Post
  #2   Spotlight this post!  
Unread 20-02-2007, 11:09
buddy.smith buddy.smith is offline
Master Control
FRC #1795
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: atlanta
Posts: 20
buddy.smith is an unknown quantity at this point
Re: old style functions??

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);
}
Here's a "new style" function declaration:
Code:
int myFunc( char param1, int param2, short param3 )
{
    .....
}
(edited for correctness, as pointed out below)

Last edited by buddy.smith : 20-02-2007 at 14:25.