1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 21:29:03 +00:00
cc65/libsrc/geos-common/common/perror.c

23 lines
355 B
C

/*
* perror.c
*
* Maciej 'YTM/Elysium' Witkowiak, 15.07.2001
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <geos.h>
void __fastcall__ perror(const char* msg)
{
const char *errmsg = strerror(errno);
ExitTurbo();
if (msg && *msg) {
DlgBoxOk(msg, errmsg);
} else {
DlgBoxOk("", errmsg);
}
}