1 /* Copyright Massachusetts Institute of Technology 1985 */ 2 3 /* 4 5 Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology 6 7 Permission to use, copy, modify, and distribute this 8 software and its documentation for any purpose and without 9 fee is hereby granted, provided that the above copyright 10 notice appear in all copies and that both that copyright 11 notice and this permission notice appear in supporting 12 documentation, and that the name of M.I.T. not be used in 13 advertising or publicity pertaining to distribution of the 14 software without specific, written prior permission. 15 M.I.T. makes no representations about the suitability of 16 this software for any purpose. It is provided "as is" 17 without express or implied warranty. 18 19 */ 20 21 22 23 24 /* 25 * XMenu: MIT Project Athena, X Window system menu package 26 * 27 * XMenuError - Returns a string description of the current 28 * XMenu error status flag. 29 * 30 * Author: Tony Della Fera, DEC 31 * August, 1985 32 * 33 */ 34 35 #include "XMenuInt.h" 36 37 char const * 38 XMenuError(void) 39 { 40 static char message[128]; /* Error message buffer. */ 41 42 if ((_XMErrorCode < XME_CODE_COUNT) && (_XMErrorCode >= 0)) { 43 return(_XMErrorList[_XMErrorCode]); 44 } 45 sprintf(message, "Unknown _XMErrorCode: %d", _XMErrorCode); 46 return(message); 47 }