New developer version 0.6.8; added select () function; added demonstrating example...
[ZeXOS.git] / libc / include / stdlib.h
blob4e4303b6456463226791d795fed1be68aec0cb10
1 /*
2 * ZeX/OS
3 * Copyright (C) 2007 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
4 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
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 <_null.h>
27 #include <abort.h>
29 /* rand () random number range */
30 #define RAND_MAX 0x7fffffff
32 extern void *malloc (size_t size);
33 extern void *calloc (size_t nmemb, size_t size);
34 extern void *realloc (void *blk, size_t size);
35 extern void free (void *blk);
36 extern void exit (int status);
37 extern void schedule ();
38 extern long strtol (const char * nptr, char ** endptr, int base);
39 extern int atoi (const char *s);
40 extern char *itoa (int value, char *string, int radix);
41 extern int abs (int i);
42 extern int system (const char *command);
43 extern int rand_r (unsigned int *ctx);
44 extern int rand ();
45 extern void srand (unsigned int seed);
46 extern long int random (void);
47 extern char *getenv (const char *name);
48 extern unsigned long strtoul (const char *nptr, char **endptr, int base);
49 extern int mkstemp (char *tmplate);
50 extern void qsort (void *base, size_t nmemb, size_t size, int (*compar) (const void *, const void *));
52 #endif