f7b10a3747
headers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1034 a1c6a512-1295-4272-9138-f99709370657
42 lines
699 B
C
42 lines
699 B
C
/*
|
|
* stdlib.h
|
|
*
|
|
* Definitions for common types, variables, and functions.
|
|
*/
|
|
|
|
#ifndef _STDLIB_H_
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define _STDLIB_H_
|
|
|
|
#include "_ansi.h"
|
|
|
|
#define __need_size_t
|
|
#define __need_wchar_t
|
|
#include <stddef.h>
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#define EXIT_FAILURE 1
|
|
#define EXIT_SUCCESS 0
|
|
|
|
extern __IMPORT int __mb_cur_max;
|
|
|
|
#define MB_CUR_MAX __mb_cur_max
|
|
|
|
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
|
|
|
|
void *malloc(size_t);
|
|
void *calloc (size_t nmemb, size_t size);
|
|
void free(void *);
|
|
void *realloc(void *, size_t);
|
|
|
|
#define abs(x) ((x)>0?x:-x)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* _STDLIB_H_ */
|