* Christmas edition *; fixed irc /os command; small cleanup in fd.c; improvements...
[ZeXOS.git] / libc / include / stdlib.h
blob61180e1a9c58a00c63becbb6e3c5a711178b167f
1 /*
2 * ZeX/OS
3 * Copyright (C) 2007 Tomas 'ZeXx86' Jedrzejek (zexx86@gmail.com)
4 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@gmail.com)
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _STDLIB_H
22 #define _STDLIB_H
24 #include <_size_t.h>
26 extern void *malloc (size_t size);
27 extern void *realloc (void *blk, size_t size);
28 extern void free (void *blk);
29 extern void exit ();
30 extern void schedule ();
31 extern long strtol (const char * nptr, char ** endptr, int base);
32 extern int atoi (const char *s);
33 extern char *itoa (int value, char *string, int radix);
34 extern void abort ();
35 extern int abs (int i);
36 extern int system (const char *command);
37 extern int rand_r (unsigned int *ctx);
38 extern int rand ();
39 extern void srand (unsigned int seed);
41 #endif