In ANSI C (and in pre-ANSI UNIX implementations), if you return from

"main()", the program exits, and exits with an exit status equal to the
return value of "main()", so "return 0;" is sufficient at the end of
"main()".

svn path=/trunk/; revision=3354
This commit is contained in:
Guy Harris 2001-04-20 22:35:19 +00:00
parent b119052e5b
commit 2d07385002
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* Edit capture files. We can delete records, or simply convert from one
* format to another format.
*
* $Id: editcap.c,v 1.13 2000/12/03 21:11:05 guy Exp $
* $Id: editcap.c,v 1.14 2001/04/20 22:35:19 guy Exp $
*
* Originally written by Richard Sharpe.
* Improved by Guy Harris.
@ -325,7 +325,6 @@ int main(int argc, char *argv[])
}
}
exit(0);
return 0; /* Silence compiler warnings */
return 0;
}