home *** CD-ROM | disk | FTP | other *** search
- /* vi:tabstop=4:shiftwidth=4:smartindent
- *
- * exit.c - Exit returning status from the shell
- *
- */
-
- #include <stdlib.h>
- #include "psh.h"
-
- int sh_exit(int argc, char **argv)
- {
- if (argc > 1)
- {
- exit(atoi(argv[1]));
- }
- exit(0);
- }
-
-