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 - Implimented abs/labs for a ported game
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
stdlib.c
diff --git
a/Usermode/Libraries/libc.so_src/stdlib.c
b/Usermode/Libraries/libc.so_src/stdlib.c
index
191f526
..
ddd1234
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/stdlib.c
+++ b/
Usermode/Libraries/libc.so_src/stdlib.c
@@
-134,3
+134,7
@@
EXPORT int atoi(const char *str)
if(neg) ret = -ret;
\r
return ret;
\r
}
\r
+
\r
+int abs(int j) { return j < 0 ? -j : j; }
\r
+long int labs(long int j) { return j < 0 ? -j : j; }
\r
+
\r
UCC
git Repository :: git.ucc.asn.au