* README.Portability (Function prototypes): Give an example of
declaring and defining a function with no arguments.
From-SVN: r55151
2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
+ * README.Portability (Function prototypes): Give an example of
+ declaring and defining a function with no arguments.
+
* README.Portability (Function prototypes): Document new
variable-argument function macros.
...
}
+This implies that if the function takes no arguments, it should be
+declared and defined as follows:
+
+int myfunc PARAMS ((void))
+
+int
+myfunc ()
+{
+ ...
+}
+
You also need to use PARAMS when referring to function protypes in
other circumstances, for example see "Calling functions through
pointers to functions" below.