home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / par150o2.zip / errmsg.h < prev    next >
C/C++ Source or Header  |  1996-01-21  |  977b  |  39 lines

  1. /*********************/
  2. /* errmsg.h          */
  3. /* for Par 1.50      */
  4. /* Copyright 1996 by */
  5. /* Adam M. Costello  */
  6. /*********************/
  7.  
  8. /* This is ANSI C code. */
  9.  
  10.  
  11. #ifndef ERRMSG_H
  12. #define ERRMSG_H
  13.  
  14.  
  15. #define errmsg_size 163
  16.  
  17. /* This is the maximum number of characters that will  */
  18. /* fit in an errmsg_t, including the terminating '\0'. */
  19. /* It will never decrease, but may increase in future  */
  20. /* versions of this header file.                       */
  21.  
  22.  
  23. typedef char errmsg_t[errmsg_size];
  24.  
  25. /* Any function which takes the argument errmsg_t errmsg must, before */
  26. /* returning, either set errmsg[0] to '\0' (indicating success), or   */
  27. /* write an error message string into errmsg, (indicating failure),   */
  28. /* being careful not to overrun the space.                            */
  29.  
  30.  
  31. extern const char * const outofmem;
  32.   /* "Out of memory.\n" */
  33.  
  34. extern const char * const impossibility;
  35.   /* "Impossibility #%d has occurred.  Please report it.\n" */
  36.  
  37.  
  38. #endif
  39.