Usermode/libc - Adding features
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / perror.c
diff --git a/Usermode/Libraries/libc.so_src/perror.c b/Usermode/Libraries/libc.so_src/perror.c
new file mode 100644 (file)
index 0000000..0431635
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ * Acess2 C Library
+ * - By John Hodge (thePowersGang)
+ *
+ * perror.c
+ * - perror() and friends
+ */
+#include <errno.h>
+#include <stdio.h>
+
+void perror(const char *s)
+{
+       fprintf(stderr, "%s: Error (%i)\n", s, errno);
+}

UCC git Repository :: git.ucc.asn.au