1 /* 2 * Copyright (c) 2006-2018, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2008-08-14 Bernard the first version 9 */ 10 11 #ifndef __STDLIB_H__ 12 #define __STDLIB_H__ 13 14 #include <sys/types.h> 15 16 #if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC) 17 int atoi(const char *nptr); 18 long int atol(const char *nptr); 19 20 int rand(void); 21 int rand_r(unsigned int *seed); 22 void srand(unsigned int seed); 23 24 void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *)); 25 26 void *malloc(size_t size); 27 void free(void *ptr); 28 void *realloc(void *ptr, size_t size); 29 void *calloc(size_t nelem, size_t elsize); 30 void abort(void); 31 #endif 32 33 #endif 34