stdlib.h 918 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * File : stdlib.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2008, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2008-08-14 Bernard the first version
  13. */
  14. #ifndef __STDLIB_H__
  15. #define __STDLIB_H__
  16. #include <sys/types.h>
  17. #if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
  18. int atoi(const char *nptr);
  19. long int atol(const char *nptr);
  20. int rand(void);
  21. int rand_r(unsigned int *seed);
  22. void srand(unsigned int seed);
  23. void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
  24. void *malloc(size_t size);
  25. void free(void *ptr);
  26. void *realloc(void *ptr, size_t size);
  27. void *calloc(size_t nelem, size_t elsize);
  28. void abort(void);
  29. #endif
  30. #endif