home *** CD-ROM | disk | FTP | other *** search
/ synchro.net / synchro.net.tar / synchro.net / modem.madness / SMMNETML / AMAX_230.ZIP / SOURCES.ZIP / AMAXERR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-15  |  2.5 KB  |  53 lines

  1. /*---------------------------------------------------------------------------*/
  2. /*                                                                           */
  3. /* Module Name:   AMAXERR.C                                                  */
  4. /* Program Name:  AMAX                                                       */
  5. /* Revision:      2.xx                                                       */
  6. /* Purpose:       Error Message Handling Routines                            */
  7. /* Programmer:    Alan D. Bryant                                             */
  8. /*                                                                           */
  9. /* Copyright (C) 1988, 89, 90, 92 Alan D. Bryant, All Rights Reserved.       */
  10. /*                                                                           */
  11. /* NOTICE:  This source code is copyrighted material.  You are granted a     */
  12. /* limited license to use and distribute the code.  The complete text of     */
  13. /* the license can be found in the document LICENSE.DOC which accompanies    */
  14. /* this source code, or can be obtained directly from the author.            */
  15. /*                                                                           */
  16. /* Inquiries regarding this package should be directed to:                   */
  17. /*                                                                           */
  18. /*     AMAX                                                                  */
  19. /*     Alan D. Bryant                                                        */
  20. /*     P. O. Box 101612                                                      */
  21. /*     Denver, CO  80250                                                     */
  22. /*     USA                                                                   */
  23. /*                                                                           */
  24. /*---------------------------------------------------------------------------*/
  25.  
  26. #include <errno.h>
  27. #include <string.h>
  28. #include <stdio.h>
  29. #include "amax.h"
  30.  
  31. char *reterror();
  32.  
  33. char *reterror()
  34. {
  35.     char outstring[80];
  36.  
  37.     strcpy(outstring, _strerror(NULL));
  38.     outstring[strlen(outstring) - 1] = '.';
  39.     return(outstring);
  40.  
  41. /*
  42.  
  43. if (errno == E2BIG) output("Arg list too long.  ");
  44. if (errno == EACCES) output("Permission denied.  ");
  45. if (errno == EMFILE) output("Too many open files.  ");
  46. if (errno == ENOENT) output("Path or file name not found.  ");
  47. if (errno == ENOEXEC) output("Exec format error.  ");
  48. if (errno == ENOMEM) output("Not enough core.  ");
  49.  
  50. */
  51.  
  52. }
  53.