(Fforward_comment): Use type int for `stop', `count1', `out_charpos'
[emacs.git] / oldXMenu / Error.c
blob51d5b8fa6cb5048846b6bdc09e04011cc8adc631
1 #include "copyright.h"
3 /* Copyright Massachusetts Institute of Technology 1985 */
4 /* Copyright (C) 2002, 2003, 2004, 2005,
5 2006 Free Software Foundation, Inc. */
7 /*
8 * XMenu: MIT Project Athena, X Window system menu package
10 * XMenuError - Returns a string description of the current
11 * XMenu error status flag.
13 * Author: Tony Della Fera, DEC
14 * August, 1985
18 #include "XMenuInt.h"
20 char *
21 XMenuError()
23 static char message[128]; /* Error message buffer. */
25 if ((_XMErrorCode < XME_CODE_COUNT) && (_XMErrorCode >= 0)) {
26 return(_XMErrorList[_XMErrorCode]);
28 sprintf(message, "Unknown _XMErrorCode: %d", _XMErrorCode);
29 return(message);
32 /* arch-tag: 5fff4a23-40ca-40d0-8887-c50fc73dea9d
33 (do not change this comment) */