2 * Copyright (c) 1993, 1994 Barton P. Miller, Jeff Hollingsworth,
3 * Bruce Irvin, Jon Cargille, Krishna Kunchithapadam, Karen
4 * Karavanic, Tia Newhall, Mark Callaghan. All rights reserved.
6 * This software is furnished under the condition that it may not be
7 * provided or otherwise made available to, or used by, any other
8 * person, except as provided for by the terms of applicable license
9 * agreements. No title to or ownership of the software is hereby
10 * transferred. The name of the principals may not be used in any
11 * advertising or publicity related to this software without specific,
12 * written prior authorization. Any use of this software must include
13 * the above copyright notice.
17 /* Revision 1.3 1994/05/11 17:13:09 newhall
18 /* changed data type from double to float
20 * Revision 1.2 1994/03/14 20:28:47 newhall
21 * changed visi subdirectory structure
23 #include "visi/h/visiTypes.h"
25 static char *visi_errmsg[] =
29 "Error: create datagrid",
30 "Error: subscript out of range",
31 "Error: aggregate datagrid error",
32 "Error: no valid element",
35 "Error: VisiInit incorrect number of arguments"
40 void visi_ErrorHandler(int errno,char *msg){
42 if((errno < (VISI_ERROR_BASE))&&(errno >= VISI_ERROR_MAX))
43 fprintf(stderr,"%s : %s\n",visi_errmsg[VISI_ERROR_BASE-errno],msg);
46 fprintf(stderr,"ERROR: invalid errno = %d\n",errno);