These C function signatures are different than I am used to seeing. The code is the following:
struct msg {
char data[20];
};
struct pkt {
int seqnum;
int acknum;
int checksum;
char payload[20];
};
/**Now LOOK AT THESE FUNCTIONS**/
A_output(message)
struct msg message;
{
// blah blah blah
}
B_output(message)
struct msg message;
{
// blah blah blah
}
A_input(packet)
struct pkt packet;
{
// blah blah blah
}
The way I know a C function works is return-value name(parameter/s)
. This looks different. What parameter do the above functions take? What is the return type? How do these functions work?