home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdlib / abort.txh < prev    next >
Encoding:
Text File  |  1995-07-17  |  417 b   |  26 lines

  1. @node abort, process
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. void abort(void);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. When you call @code{abort}, the message "Abort!" is printed on stdout
  13. and the program exits with an exit code of one. 
  14.  
  15. @subheading Return Value
  16.  
  17. This function does not return.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. if ((q = malloc(100)) == NULL)
  23.   abort();
  24. @end example
  25.  
  26.