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)
6 * Copyright (C) 2010 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 /* rand () random number range */
31 #define RAND_MAX 0x7fffffff
33 extern void *malloc (size_t size
);
34 extern void *calloc (size_t nmemb
, size_t size
);
35 extern void *realloc (void *blk
, size_t size
);
36 extern void free (void *blk
);
37 extern void exit (int status
);
38 extern void schedule ();
39 extern long strtol (const char * nptr
, char ** endptr
, int base
);
40 extern int atoi (const char *s
);
41 extern char *itoa (int value
, char *string
, int radix
);
42 extern int abs (int i
);
43 extern int system (const char *command
);
44 extern int rand_r (unsigned int *ctx
);
46 extern void srand (unsigned int seed
);
47 extern long int random (void);
48 extern char *getenv (const char *name
);
49 extern unsigned long strtoul (const char *nptr
, char **endptr
, int base
);
50 extern int mkstemp (char *tmplate
);
51 extern void qsort (void *base
, size_t nmemb
, size_t size
, int (*compar
) (const void *, const void *));
52 extern long atol (const char *s
);
53 extern long long atoll (const char *s
);