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