comparison lphobos/std/c/stdlib.d @ 473:373489eeaf90

Applied downs' lphobos update
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 19:28:49 +0200
parents 61615fa85940
children
comparison
equal deleted inserted replaced
472:15c804b6ce77 473:373489eeaf90
40 void exit(int); /// ditto 40 void exit(int); /// ditto
41 void _exit(int); /// ditto 41 void _exit(int); /// ditto
42 42
43 int system(char *); 43 int system(char *);
44 44
45 pragma(LLVM_internal, "alloca") 45 pragma(alloca)
46 void *alloca(uint); /// 46 void *alloca(uint); ///
47 47
48 void *calloc(size_t, size_t); /// 48 void *calloc(size_t, size_t); ///
49 void *malloc(size_t); /// ditto 49 void *malloc(size_t); /// ditto
50 void *realloc(void *, size_t); /// ditto 50 void *realloc(void *, size_t); /// ditto
62 int rand(); /// 62 int rand(); ///
63 void srand(uint); /// ditto 63 void srand(uint); /// ditto
64 int random(int num); /// ditto 64 int random(int num); /// ditto
65 void randomize(); /// ditto 65 void randomize(); /// ditto
66 66
67 int getErrno(); /// ditto 67 int* __errno_location();
68 int setErrno(int); /// ditto 68 int getErrno() { return *__errno_location(); }
69 int setErrno(int i) { return *__errno_location = i; }
70 //int getErrno(); /// ditto
71 //int setErrno(int); /// ditto
69 72
70 const int ERANGE = 34; // on both Windows and linux 73 const int ERANGE = 34; // on both Windows and linux
71 74
72 double atof(char *); /// 75 double atof(char *); ///
73 int atoi(char *); /// ditto 76 int atoi(char *); /// ditto