abort
Terminates an NLMâ„¢ application abnormally
#include <assert.h> #include <nwthread.h> #include <stdlib.h> void abort (void);
None
This function causes the NLM to be terminated abnormally. It writes the following termination message to the System Console Screen:
ABNORMAL NLM TERMINATION in: NLMname
The abort function then raises SIGABRT and calls _exit (3).
The following sequence of events occurs when the NLM is terminated abnormally:
exit, _exit, ExitThread, raise
#include <assert.h>
#include <nwthread.h>
#include <stdlib.h>
#include <nwconio.h>
main()
{
printf("this should print\r\n");
getch();
abort();
printf("this should not print\r\n");
getch();
}