News for hackers. Stuff that matters.
Re:F() vs. F(void) in C vs. C++ by barrkel on Sunday May 12, 2019 @07:48PM (#19895375)
That's K&R C, predating ANSI C. It's not that uncommon if you're looking at long-lived codebases.

Rather it should look like this:

    int foo(x, y)
      int x;
      int y;
    { return x + y; }
x and y would be assumed to be int in the absence of the type specifiers, so in this case they're optional.
Re:F() vs. F(void) in C vs. C++ by klodolph on Sunday May 12, 2019 @11:26PM (#19896243)
To add to this, int is also default return type.

   foo(x, y) { return x + y; }