/*
 *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
 *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
 *
 *    $Id: error_ew.h,v 1.1 2000/05/04 23:42:17 lombard Exp $
 *
 *    Revision history:
 *     $Log: error_ew.h,v $
 *     Revision 1.1  2000/05/04 23:42:17  lombard
 *     Initial revision
 *
 *
 *
 */
/* Include file for Earthworm error-reporting routines */

#ifndef ERROR_EW
#define ERROR_EW

/* Function prototypes: */

/****************** GetLastError_ew ***********************
 *     Returns the error code for the most recent error.  *
 **********************************************************/
int GetLastError_ew();

/*****************************************************************
 *  ew_fmt_err_msg: builds text for the error                    *
 *      error: the error number returned by GetLastError or, for *
 *             socket errors, by WSAGetLastError.                *
 *     retstr is expected to hold at least maxlen bytes          *
 *****************************************************************/
void ew_fmt_err_msg( int error, char *retstr, int maxlen);


#endif
