Networking - Heaps of changes
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / stdlib.c
index ce5a8d0..733cb91 100644 (file)
 EXPORT int     atoi(const char *str);\r
 EXPORT void    exit(int status);\r
 \r
+// === GLOBALS ===\r
+void   (*g_stdlib_exithandler)(void);\r
+\r
 // === CODE ===\r
+void atexit(void (*__func)(void))\r
+{\r
+       g_stdlib_exithandler = __func;\r
+}\r
+\r
 /**\r
  * \fn EXPORT void exit(int status)\r
  * \brief Exit\r

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