about summary refs log tree commit diff stats
path: root/src/LYStrings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYStrings.c')
-rw-r--r--src/LYStrings.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/LYStrings.c b/src/LYStrings.c
index f7ff73d9..f8d0fe3c 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -288,6 +288,21 @@ PRIVATE int set_clicked_link ARGS3(
 
 
 /*
+ *  LYstrerror emulates the ANSI strerror() function.
+ */
+#ifdef LYStrerror
+    /* defined as macro in .h file. */
+#else
+PUBLIC char *LYStrerror ARGS1(int, code)
+{
+    static char temp[80];
+    sprintf(temp, "System errno is %d.\r\n", code);
+    return temp;
+}
+#endif /* HAVE_STRERROR */
+
+
+/*
  *  LYstrncpy() terminates strings with a null byte.
  *  Writes a null byte into the n+1 byte of dst.
  */