exit();

J. K. Chan jkchan at lynx.cat.syr.edu
Sun Mar 31 08:12:58 AEST 1991


I must be missing learning some simple idea about the use of exit();.
Given the following program (I chopped it out from my program),
"lint" always issues a warning message as shown in the comment part
of the program.  My program can run but I'm bothered by the lint
warning message.  I tried to use lint in different Unix accounts but
still got the same message.  The K&R book didn't say anything more than just
using exit(); directly.  Please help and send email to the above address.
Thanks in advance.
Jim

/*
    exit value declared inconsistently	llib-lc(232)  ::  t.c(8)
*/
#include <stdio.h>
#include <stdlib.h>
main()
{
  exit(0);
}



More information about the Comp.lang.c mailing list