mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-12 09:57:05 +03:00
af35cc6783
git-svn-id: svn://kolibrios.org@6424 a494cfbc-eb01-0410-851d-a64ba20cac60
30 lines
801 B
C
30 lines
801 B
C
#ifndef stdlib_h
|
|
#define stdlib_h
|
|
#include "kolibrisys.h"
|
|
|
|
#define RAND_MAX 65535
|
|
|
|
//#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 char *itoab(int n,char* s,int b);
|
|
extern char *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);
|
|
|
|
extern int rand (void);
|
|
extern void srand (unsigned int seed);
|
|
|
|
double strtod (const char* str, char** endptr);
|
|
long double strtold (const char* str, char** endptr);
|
|
float strtof (const char* str, char** endptr);
|
|
|
|
|
|
#define exit(a) _ksys_exit()
|
|
#endif |