1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00
cc65/libsrc/geos-common/common/perror.c
ol.sc 5f4129f14d Moved the 'common' files from 'geos-cbm' to 'geos-common' which are believed to work as-is on Apple GEOS too.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5449 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-04 22:17:46 +00:00

23 lines
341 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);
}
}