1 /* copyright(C) 2003 H.Kawai (under KL-01). */
\r
3 #if (!defined(STDLIB_H))
\r
7 #if (defined(__cplusplus))
\r
11 #include <stddef.h> /* size_t */
\r
13 #define RAND_MAX 0x7fff
\r
14 #define srand(seed) (void) (rand_seed = (seed))
\r
16 #define EXIT_SUCCESS 0
\r
17 #define EXIT_FAILURE 1
\r
20 double atof(const char *s);
\r
21 int atoi(const char *s);
\r
22 void qsort(void *base, size_t n, size_t size,
\r
23 int (*cmp)(const void *, const void *));
\r
25 extern unsigned int rand_seed;
\r
26 double strtod(const char *s, const char **endp);
\r
27 long strtol(const char *s, const char **endp, int base);
\r
28 unsigned long strtoul(const char *s, const char **endp, int base);
\r
30 void *malloc(unsigned int nbytes);
\r
31 void free(void *ap);
\r
32 void exit(int status);
\r
33 #define abort() exit(EXIT_FAILURE)
\r
34 int system(const char *s);
\r
36 #if (defined(__cplusplus))
\r