20,11 → 20,11 |
|
/** |
------------ |
CVS : $Id: stdlib.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: stdlib.h,v 1.3 2003-03-13 13:41:04 pj Exp $ |
|
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:41:04 $ |
------------ |
|
stdlib.h |
55,7 → 55,13 |
|
#include <ll/stdlib.h> |
#include <sys/types.h> |
#include <stddef.h> |
#include "ll/sys/cdefs.h" |
|
__BEGIN_DECLS |
|
#define qsort _quicksort |
|
void abort(void); |
int atexit(void (*function)(void)); |
void *calloc(size_t nelt, size_t eltsize); |
69,10 → 75,16 |
void _exit(int status); |
|
/* to implement!! */ |
char *getenv (const char *); |
//char *getenv(const char *); |
|
/* not standard but required! */ |
long strtol (const char *, char **, int); |
unsigned long strtoul (const char *, char **, int); |
|
/* StdLib QSort */ |
typedef int (*__compar_fn_t) (const void *, const void *); |
extern void _quicksort (void *const pbase, size_t total_elems, size_t size, __compar_fn_t cmp); |
extern void * bsearch (const void *key, const void *base, size_t nmemb, size_t size, int (*compar) (const void *, const void *)); |
|
__END_DECLS |
#endif |