Subversion Repositories Kolibri OS

Rev

Rev 6424 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6424 Rev 6433
Line 1... Line 1...
1
#ifndef stdlib_h
1
#ifndef stdlib_h
2
#define stdlib_h
2
#define stdlib_h
3
#include "kolibrisys.h"
3
#include "kolibrisys.h"
Line 4... Line 4...
4
 
4
 
-
 
5
#define	RAND_MAX	65535
-
 
6
#ifndef NULL
-
 
7
# define NULL ((void*)0)
Line 5... Line -...
5
#define	RAND_MAX	65535
-
 
6
 
8
#endif
-
 
9
 
Line 7... Line 10...
7
//#define isspace(c) ((c)==' ')
10
#define abs(i) (((i)<0)?(-(i)):(i))
8
#define abs(i) (((i)<0)?(-(i)):(i))
11
#define labs(li) abs(li)
9
 
-
 
10
extern int atoib(char *s,int b);
-
 
11
extern int atoi(char *s);
12
 
12
extern unsigned char tolower(unsigned char c);
13
extern int atoib(char *s,int b);
Line 13... Line 14...
13
extern unsigned char toupper(unsigned char c);
14
extern int atoi(char *s);
14
extern char *itoab(int n,char* s,int  b);
15
extern char *itoab(int n,char* s,int  b);
Line 23... Line 24...
23
 
24
 
24
double strtod (const char* str, char** endptr);
25
double strtod (const char* str, char** endptr);
25
long double strtold (const char* str, char** endptr);
26
long double strtold (const char* str, char** endptr);
Line -... Line 27...
-
 
27
float strtof (const char* str, char** endptr);
Line 26... Line 28...
26
float strtof (const char* str, char** endptr);
28
 
-
 
29
void* calloc (size_t num, size_t size);
-
 
30
 
-
 
31
#define exit(a) _ksys_exit()
-
 
32
#define abort() exit(-1)
-
 
33
 
-
 
34
typedef struct {
-
 
35
  int quot;
-
 
36
  int rem;
-
 
37
} div_t;
-
 
38
 
-
 
39
typedef div_t ldiv_t;
-
 
40
 
-
 
41
div_t div (int numer, int denom);
27
 
42
#define ldiv(a, b) div(a, b)
28
 
43
#define atol(a) atoi(a)