.title error Error exit from C programs .ident "V02.00" ;+ ; ; Index Error exit from C programs ; ; Usage ; ; error(format, arglist); ; ; Description ; ; An error message is written to the terminal and the program ; exits. The exit status ($$exst) will be set to "error". ;- ; Edit history: ; V02.00 19-Oct-82 TTC Rework of CS library ; .psect c$code error:: tst (sp)+ ;pop return address call printf ;message on top of stack, print it bis #2,$$exst ;Error exit status jmp $$exit .end