stdlib.h 740 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef __STDLIB_H__
  11. #define __STDLIB_H__
  12. #include <sys/types.h>
  13. #if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
  14. int atoi(const char *nptr);
  15. long int atol(const char *nptr);
  16. int rand(void);
  17. int rand_r(unsigned int *seed);
  18. void srand(unsigned int seed);
  19. void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
  20. void *malloc(size_t size);
  21. void free(void *ptr);
  22. void *realloc(void *ptr, size_t size);
  23. void *calloc(size_t nelem, size_t elsize);
  24. void abort(void);
  25. #endif
  26. #endif