strange behaviour of lint?
Dave Decot
decot at hpisod2.HP.COM
Tue May 9 19:54:03 AEST 1989
Since you have not provided an external declaration for the function exit(),
lint assumes that in your program, the following declaration is implied:
extern int exit();
When lint checks the lint library for libc, however, it sees that there it
is declared to return void.
You can get lint to stop this message by adding:
extern void exit();
before you first use exit().
The function perror() has a similar problem.
NOTE: For ANSI C compilation systems, ignore all of the previous, and use
#include <stdlib.h>
instead.
More information about the Comp.lang.c
mailing list