home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------*/
- /* */
- /* Module Name: AMAXERR.C */
- /* Program Name: AMAX */
- /* Revision: 2.xx */
- /* Purpose: Error Message Handling Routines */
- /* Programmer: Alan D. Bryant */
- /* */
- /* Copyright (C) 1988, 89, 90, 92 Alan D. Bryant, All Rights Reserved. */
- /* */
- /* NOTICE: This source code is copyrighted material. You are granted a */
- /* limited license to use and distribute the code. The complete text of */
- /* the license can be found in the document LICENSE.DOC which accompanies */
- /* this source code, or can be obtained directly from the author. */
- /* */
- /* Inquiries regarding this package should be directed to: */
- /* */
- /* AMAX */
- /* Alan D. Bryant */
- /* P. O. Box 101612 */
- /* Denver, CO 80250 */
- /* USA */
- /* */
- /*---------------------------------------------------------------------------*/
-
- #include <errno.h>
- #include <string.h>
- #include <stdio.h>
- #include "amax.h"
-
- char *reterror();
-
- char *reterror()
- {
- char outstring[80];
-
- strcpy(outstring, _strerror(NULL));
- outstring[strlen(outstring) - 1] = '.';
- return(outstring);
-
- /*
-
- if (errno == E2BIG) output("Arg list too long. ");
- if (errno == EACCES) output("Permission denied. ");
- if (errno == EMFILE) output("Too many open files. ");
- if (errno == ENOENT) output("Path or file name not found. ");
- if (errno == ENOEXEC) output("Exec format error. ");
- if (errno == ENOMEM) output("Not enough core. ");
-
- */
-
- }
-