2009-10-11 13:44:19 +08:00
|
|
|
/*
|
|
|
|
* File : stdlib.h
|
|
|
|
* This file is part of RT-Thread RTOS
|
|
|
|
* COPYRIGHT (C) 2008, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* The license and distribution terms for this file may be
|
|
|
|
* found in the file LICENSE in this distribution or at
|
|
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2008-08-14 Bernard the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STDLIB_H__
|
|
|
|
#define __STDLIB_H__
|
|
|
|
|
2010-11-01 06:22:28 +08:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2009-10-11 13:44:19 +08:00
|
|
|
#if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
|
|
|
|
int atoi(const char *nptr);
|
2009-10-11 13:47:01 +08:00
|
|
|
|
2010-10-16 07:31:11 +08:00
|
|
|
int rand(void);
|
|
|
|
int rand_r(unsigned int *seed);
|
|
|
|
void srand(unsigned int seed);
|
|
|
|
|
2010-11-01 06:22:28 +08:00
|
|
|
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
|
|
|
|
|
2011-06-04 21:34:02 +08:00
|
|
|
void *malloc(size_t size);
|
|
|
|
void free(void *ptr);
|
|
|
|
void *realloc(void *ptr, size_t size);
|
|
|
|
void *calloc(size_t nelem, size_t elsize);
|
|
|
|
#endif
|
|
|
|
|
2009-10-11 13:44:19 +08:00
|
|
|
#endif
|