summaryrefslogtreecommitdiff
path: root/src/c_fl_error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_error.cpp')
-rw-r--r--src/c_fl_error.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/c_fl_error.cpp b/src/c_fl_error.cpp
index 2b83187..e38481a 100644
--- a/src/c_fl_error.cpp
+++ b/src/c_fl_error.cpp
@@ -5,12 +5,23 @@
#include <FL/Fl.H>
+#include <errno.h>
#include <stdarg.h>
+#include <string.h>
#include "c_fl_error.h"
+// Obtaining general error messages from errno
+
+char * get_error_message() {
+ return strerror(errno);
+}
+
+
+
+
// Exports from Ada
extern "C" void error_warning_hook(const char * m);