home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ User's Journal & Wi…eveloper's Journal Tools
/
C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso
/
windbase
/
windbase.exe
/
MEMSLC.3
/
ERROR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-11
|
4KB
|
113 lines
/*****************************************************************************\
** **
** WW WW IIIIIIII NNN NN DDDDDDD BBBBBBB AA SSSSSS EEEEEEEE **
** WW W WW II NNNN NN DD DD BB BB AA AA SS EE **
** WW W WW II NN NN NN DD DD BBBBBBB AAAAAAAA SSSSSS EEEEEE **
** WW W WW II NN NNNN DD DD BB BB AA AA SS EE **
** WWWWW IIIIIIII NN NNN DDDDDDD BBBBBBB AA AA SSSSSS EEEEEEEE **
** **
** SSSSSS OOOOOO FFFFFFFF TTTTTTTT WW WW AA RRRRRRR EEEEEEEE **
** SS OO OO FF TT WW W WW AA AA RR RR EE **
** SSSSS OO OO FFFFF TT WW W WW AAAAAAAA RRRRRRR EEEEEE **
** SS OO OO FF TT WW W WW AA AA RR RR EE **
** SSSSSS OOOOOO FF TT WWWWW AA AA RR RR EEEEEEEE **
** **
*********** NOTICE ************************************************************
** This file contains valuable trade secrets and proprietary **
** assets of Windbase Software Inc. Embodying substantial **
** creative efforts and confidential information. Unauthorized **
** use, copying, decompiling, translating, disclosure or **
** transfer, of any kind, is strictly prohibited. **
** **
** COPYRIGHT (C) 1992, 1993, 1994. Windbase Software Inc. **
** ALL RIGHTS RESERVED. **
\*****************************************************************************/
#include <stdio.h>
#include "../memsl.h"
#ifdef WBSTDC
void ErrLogHandler(void *nullchar, int errlvl, int error, char *comment)
#else
void ErrLogHandler(nullchar, errlvl, error, comment)
void *nullchar;
int errlvl;
int error;
char *comment;
#endif
{
WBTrcEntry(0,"ErrLogHandler",("%p, %d, %d, %s",nullchar,errlvl,error,comment?comment:"NULL"));
printf("%s %d %d %s\n",nullchar,errlvl,error,comment);
WBTrcVReturn(0,(""));
}
#ifdef WBSTDC
int ErrHandler(void *nullchar, int errlvl, int error, char *comment)
#else
int ErrHandler(nullchar, errlvl, error, comment)
void *nullchar;
int errlvl;
int error;
char *comment;
#endif
{
WBTrcEntry(0,"ErrHandler",("%p, %d, %d, %s",nullchar,errlvl,error,comment?comment:"NULL"));
printf("%s %d %d %s\n",nullchar,errlvl,error,comment);
WBTrcReturn(0,0,("0"));
}
#ifdef WBSTDC
int ErrLvlHandler(void *nullchar, int errlvl, int error, char *comment)
#else
int ErrLvlHandler(nullchar, errlvl, error, comment)
void *nullchar;
int errlvl;
int error;
char *comment;
#endif
{
WBTrcEntry(0,"ErrLvlHandler",("%p, %d, %d, %s",nullchar,errlvl,error,comment?comment:"NULL"));
printf("%s %d %d %s\n",nullchar,errlvl,error,comment);
printf("Were out a here\n");
WBTrcReturn(0,0,("0"));
}
#if defined(WBTRC_LEVEL1) || defined(WBTRC_LEVEL2)
#ifdef WBSTDC
int main(int argc, char **argv)
#else
int main(argc, argv)
int argc;
char **argv;
#endif
#else
#ifdef WBSTDC
int main(void)
#else
int main()
#endif
#endif
{
WBERROR *errhdl;
WBTrcMainEntry();
if ((errhdl = WBErrorOpen(0,NULL)) != NULL)
{
WBErrorLog(errhdl,1,100,"This is an error %d\n",100);
WBErrorLog(errhdl,1,5,"This is an error %d\n",100);
WBErrorLog(errhdl,21,100,"This is an error %d\n",100);
WBErrorLog(errhdl,5,5,"This is an error %d\n",100);
WBErrorClose(errhdl);
}
WBTrcReturn(0,0,("0"));
}