git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
Usermode/Libraries/libc.so_src/perror.c
@@ -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