While reading the source code for MINIX, I came across the following:
int do_read_write(rw_flag)
int rw_flag; /* READING or WRITING */
{
It looks like the middle line is used to declare the type of the rw_flag
input to the function, but I have never seen this notation before. Is it any different from the following?
int do_read_write(int rw_flag) {
If not, does it serve any purpose, other than expanding the code so that it can be commented more?