Files
30dayMakeOS/tolset/z_tools/win32/stdlib.h
2014-09-04 15:36:35 +08:00

41 lines
868 B
C

/* copyright(C) 2003 H.Kawai (under KL-01). */
#if (!defined(STDLIB_H))
#define STDLIB_H 1
#if (defined(__cplusplus))
extern "C" {
#endif
#include <stddef.h> /* size_t */
#define RAND_MAX 0x7fff
#define srand(seed) (void) (rand_seed = (seed))
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
int abs(int n);
double atof(const char *s);
int atoi(const char *s);
void qsort(void *base, size_t n, size_t size,
int (*cmp)(const void *, const void *));
int rand(void);
extern unsigned int rand_seed;
double strtod(const char *s, const char **endp);
long strtol(const char *s, const char **endp, int base);
unsigned long strtoul(const char *s, const char **endp, int base);
void *malloc(unsigned int nbytes);
void free(void *ap);
void exit(int status);
#define abort() exit(EXIT_FAILURE)
int system(const char *s);
#if (defined(__cplusplus))
}
#endif
#endif