simi
asked on
function arguments declaration
Hi,
I have encountered the following code:
File - aFile.h
void aFunction(char*, char*, int);
File aFile.c
.....
void aFunction(SomeText1, SomeText2, SomeInt)
char SomeText1, SomeText2;
int SomeInt;
{
...function body
}
I am not used with such code.
What confuses me is the declaration of the three argument variables, outside the function body .
I was used with prototyping the function in an .h file, then defining it in the .c file.
Can you please help.
Thanks.
I have encountered the following code:
File - aFile.h
void aFunction(char*, char*, int);
File aFile.c
.....
void aFunction(SomeText1, SomeText2, SomeInt)
char SomeText1, SomeText2;
int SomeInt;
{
...function body
}
I am not used with such code.
What confuses me is the declaration of the three argument variables, outside the function body .
I was used with prototyping the function in an .h file, then defining it in the .c file.
Can you please help.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.