I was reading through GNU C library - Date-time - Data & Functions and came across this function definition:
int timeval_subtract (result, x, y)
struct timeval *result, *x, *y;
{
//do stuff
return result;
}
I have never come across this argument passing before. -There is not type for the variables within the parenthesis (). -OK the type "struct timeval" comes later, but using the same variable names?
Is the above entirely equivalent to
int struct_timeval(struct timeval *result, struct timeval *x, struct timeval *y){
//do stuff
}
or not?