2007-10-15 11:42:17 +02:00
|
|
|
#ifndef stdlib_h
|
|
|
|
#define stdlib_h
|
|
|
|
#include "kolibrisys.h"
|
|
|
|
|
2008-01-14 20:33:34 +01:00
|
|
|
#define RAND_MAX 65535
|
|
|
|
|
2007-10-15 11:42:17 +02:00
|
|
|
//#define isspace(c) ((c)==' ')
|
|
|
|
#define abs(i) (((i)<0)?(-(i)):(i))
|
|
|
|
|
|
|
|
extern int atoib(char *s,int b);
|
|
|
|
extern int atoi(char *s);
|
|
|
|
extern unsigned char tolower(unsigned char c);
|
|
|
|
extern unsigned char toupper(unsigned char c);
|
|
|
|
extern void itoab(int n,char* s,int b);
|
|
|
|
extern void itoa(int n,char* s);
|
|
|
|
|
|
|
|
extern void* stdcall malloc(dword size);
|
|
|
|
extern void stdcall free(void *pointer);
|
|
|
|
extern void* stdcall realloc(void* pointer,dword size);
|
2008-01-14 20:33:34 +01:00
|
|
|
|
|
|
|
extern int rand (void);
|
|
|
|
extern void srand (unsigned int seed);
|
|
|
|
|
2007-10-15 11:42:17 +02:00
|
|
|
#endif
|