home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / mkdoc / sample.txh < prev   
Encoding:
Text File  |  1995-03-11  |  850 b   |  48 lines

  1. @c ----------------------------------------------------------------------
  2. @node abort, process
  3. @subheading Syntax
  4.  
  5. @example
  6. #include <stdlib.h>
  7.  
  8. void volatile abort(void);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. When you call @code{abort}, the message "Abort!" is printed on stdout
  14. and the program exits with an exit code of one. 
  15.  
  16. @subheading Return Value
  17.  
  18. This function does not return.
  19.  
  20. @subheading Example
  21.  
  22. @example
  23. if ((q = malloc(100)) == NULL)
  24.   abort();
  25. @end example
  26.  
  27. @c ----------------------------------------------------------------------
  28. @node abs, math
  29. @subheading Syntax
  30.  
  31. @example
  32. #include <stdlib.h>
  33.  
  34. int abs(int value);
  35. @end example
  36.  
  37. @subheading Return Value
  38.  
  39. The absolute value of @code{value} is returned.
  40.  
  41. @subheading Example
  42.  
  43. @example
  44. int sq = 7;
  45. sq = sq * abs(sq) + 1;
  46. @end example
  47.  
  48.