stdlib.h 570 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _WAMR_LIBC_STDLIB_H
  6. #define _WAMR_LIBC_STDLIB_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef unsigned long size_t;
  11. int
  12. atoi(const char *s);
  13. void
  14. exit(int status);
  15. long
  16. strtol(const char *nptr, char **endptr, register int base);
  17. unsigned long
  18. strtoul(const char *nptr, char **endptr, register int base);
  19. void *
  20. malloc(size_t size);
  21. void *
  22. calloc(size_t n, size_t size);
  23. void
  24. free(void *ptr);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif