| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | error.c |
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards, 3:711/934{at}fidonet. */
/* Released to the Public Domain */
/* Written Dec 1993 */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* error.c - error handling strategy. */
/* */
/* Refer to error.h for documentation. */
/* */
/*********************************************************************/
#include
#include
#include
#include "error.h"
ERROR error;
void errorSet(char *fmt, ...)
{
va_list va;
if (ALLOK)
{
strcpy(error.fmt, fmt);
va_start(va, fmt);
vsprintf(error.buf, fmt, va);
va_end(va);
error.errorOccurred = 1;
}
return;
}
void errorFlush(void)
{
if (error.errorOccurred)
{
printf("%s", error.buf);
errorClear();
}
return;
}
@EOT:
---
* Origin: X (3:711/934.9) |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.