home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 256_01 / errlist.c < prev    next >
Text File  |  1988-01-08  |  6KB  |  126 lines

  1. /*-------------------------------------------------------------------*/
  2. /*    LIBRARY FILE:     ERRLIST.C
  3.     ------------
  4.     WRITTEN:          07/09/87
  5.     -------
  6.     PURPOSE:          Array of pointers to error messages.   Should
  7.     -------           be used with PRINTERR
  8.     USAGE:
  9.     -----
  10.     DEPENDENCIES:     De Smet C V 2.44+
  11.     ------------
  12.     Copyright 1987 - Cogar Computer Services Pty. Ltd                */
  13. /*-------------------------------------------------------------------*/
  14. char undefmsg[] = "Undefined error.";
  15.  
  16. char *errlist[] =
  17. {
  18.     "",                                /* [0]                        */
  19.     "Invalid function number",         /* [1]                        */
  20.     "File not found",                  /* [2]                        */
  21.     "Invalid path",                    /* [3]                        */
  22.     "Too many files open",             /* [4]                        */
  23.     "Access denied",                   /* [5]                        */
  24.     "Invalid file handle",             /* [6]                        */
  25.     "Memory control blocks destroyed", /* [7]                        */
  26.     "Memory exhausted",                /* [8]                        */
  27.     "Invalid memory block address",    /* [9]                        */
  28.     "Invalid environment",             /* [10]                       */
  29.     "Invalid format",                  /* [11]                       */
  30.     "Invalid access code",             /* [12]                       */
  31.     "Invalid data",                    /* [13]                       */
  32.     undefmsg,                          /* [14]                       */
  33.     "Invalid drive was specified",     /* [15]                       */
  34.     "Attempt to remove current directory",  /* [16]                  */
  35.     "Not same device",                 /* [17]                       */
  36.     "No more files",                   /* [18]                       */
  37.     "Disk write-protected",            /* [19]                       */
  38.     "Unknown unit",                    /* [20]                       */
  39.     "Drive not ready",                 /* [21]                       */
  40.     "Unknown command",                 /* [22]                       */
  41.     "Data error (CRC)",                /* [23]                       */
  42.     "Structure length error",          /* [24]                       */
  43.     "Seek error",                      /* [25]                       */
  44.     "Unknown media type",              /* [26]                       */
  45.     "Sector not found",                /* [27]                       */
  46.     "Printer out of paper",            /* [28]                       */
  47.     "Write error",                     /* [29]                       */
  48.     "Read error",                      /* [30]                       */
  49.     "General failure",                 /* [31]                       */
  50.     "Sharing violation",               /* [32]                       */
  51.     "Lock violation",                  /* [33]                       */
  52.     "Invalid disk change",             /* [34]                       */
  53.     "FCB not available",               /* [35]                       */
  54.     undefmsg,                          /* [36] to [79]               */
  55.     undefmsg,
  56.     undefmsg,
  57.     undefmsg,
  58.     undefmsg,                          /* [40]                       */
  59.     undefmsg,
  60.     undefmsg,
  61.     undefmsg,
  62.     undefmsg,
  63.     undefmsg,
  64.     undefmsg,
  65.     undefmsg,
  66.     undefmsg,
  67.     undefmsg,
  68.     undefmsg,                          /* [50]                       */
  69.     undefmsg,
  70.     undefmsg,
  71.     undefmsg,
  72.     undefmsg,
  73.     undefmsg,
  74.     undefmsg,
  75.     undefmsg,
  76.     undefmsg,
  77.     undefmsg,
  78.     undefmsg,                          /* [60]                       */
  79.     undefmsg,
  80.     undefmsg,
  81.     undefmsg,
  82.     undefmsg,
  83.     undefmsg,
  84.     undefmsg,
  85.     undefmsg,
  86.     undefmsg,
  87.     undefmsg,
  88.     undefmsg,                          /* [70]                       */
  89.     undefmsg,
  90.     undefmsg,
  91.     undefmsg,
  92.     undefmsg,
  93.     undefmsg,
  94.     undefmsg,
  95.     undefmsg,
  96.     undefmsg,
  97.     undefmsg,                          /* [79]                       */
  98.     "File exists",                     /* [80]                       */
  99.     undefmsg,                          /* [81]                       */
  100.     "Cannot make",                     /* [82]                       */
  101.     "INT 24 failure",                  /* [83]                       */
  102.     "Unable to copy file to itself",   /* [84]                       */
  103.     "Invalid option",                  /* [85]                       */
  104.     "Subdirectory already exists",     /* [86]                       */
  105.     "Not enough arguments",            /* [87]                       */
  106.     "File is R/O",                     /* [88]                       */
  107.     "Invalid option prefix",           /* [89]                       */
  108.     "Bad drive...path...or filename",  /* [90]                       */
  109.     "Insufficient memory installed",   /* [91]                       */
  110.     "Write error...disk may be full",  /* [92]                       */
  111.     "Insufficient disk space",         /* [93]                       */
  112.     "Unknown error",                   /* [94]                       */
  113.     "Path name too long",              /* [95]                       */
  114.     "Invalid date",                    /* [96]                       */
  115.     "Invalid time",                    /* [97]                       */
  116.     "Unable to open for reading",      /* [98]                       */
  117.     "Unable to open for writing",      /* [99]                       */
  118.     "Unable to open for up-date",      /* [100]                      */
  119.     "",                                /* [101] Sound bell           */
  120.     "Serial port not available",       /* [102]                      */
  121.     "Uninitialised data structure",    /* [103]                      */
  122.     "Interrupts not supported"         /* [104]                      */
  123. };
  124. unsigned errtablesize = sizeof(errlist)/sizeof(char**);
  125. /*-------------------------------------------------------------------*/
  126.