stdlib.h 955 字节
Newer Older
B
bernard.xiong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * 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__

18 19
#include <sys/types.h>

B
bernard.xiong 已提交
20 21
#if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
int atoi(const char *nptr);
qiuyiuestc's avatar
qiuyiuestc 已提交
22
long int atol(const char *nptr);
23

24 25 26 27
int rand(void);
int rand_r(unsigned int *seed);
void srand(unsigned int seed);

28 29
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));

30 31 32 33
void *malloc(size_t size);
void free(void *ptr);
void *realloc(void *ptr, size_t size);
void *calloc(size_t nelem, size_t elsize);
34
void abort(void);
35 36
#endif

B
bernard.xiong 已提交
37
#endif