Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

printf(3)

exit(2)

wait(2)

QUIT(3)  —  UNIX Programmer’s Manual

NAME

quit − print message and exit

SYNOPSIS

quit (status, format [, arg ] ...  )
int status;
char ∗format;

DESCRIPTION

quit is a means of terminating a process with an error message.  This call should never return. quit prints on standard error the message specified by the printf(3) argument list format [, arg]...  then exits.  The first argument, status, will be the argument passed to exit(2) and this is the process’s return code. All of the process’s files will be closed.

SEE ALSO

printf(3), exit(2), wait(2)

HISTORY

13-Nov-86  Andi Swimmer (andi) at Carnegie-Mellon University
Revised for 4.3.

20-Mar-81  Dale Moore (dwm) at Carnegie-Mellon University
Changed to call _doprnt instead of fprintf.

06-Dec-79  Steven Shafer (sas) at Carnegie-Mellon University
Created.

7th Edition  —  3/20/81

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026