stdlib.h 667 B

123456789101112131415161718192021222324252627
  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. #if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC)
  17. int atoi(const char *nptr);
  18. #endif
  19. #define malloc rt_malloc
  20. #define free rt_free
  21. #define realloc rt_realloc
  22. #define calloc rt_calloc
  23. #endif