stdlib.h 742 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-06-07 Meco Man The first version.
  9. */
  10. #ifndef __POSIX_STDLIB_H__
  11. #define __POSIX_STDLIB_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #include <stdint.h>
  16. #include <stdlib.h>
  17. void __rt_libc_exit(int status);
  18. char *itoa(int n, char *buffer, int radix);
  19. char *lltoa(int64_t ll, char *buffer, int radix);
  20. char *ltoa(long l, char *buffer, int radix);
  21. char *ulltoa(uint64_t ll, char *buffer, int radix);
  22. char *ultoa(unsigned long l, char *buffer, int radix);
  23. char *utoa(unsigned int n, char *buffer, int radix);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* __POSIX_STDLIB_H__ */