stdlib.h 568 B

12345678910111213141516171819202122232425262728
  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 int size_t;
  11. int atoi(const char *s);
  12. void exit(int status);
  13. long strtol(const char *nptr, char **endptr, register int base);
  14. unsigned long strtoul(const char *nptr, char **endptr, register int base);
  15. void *malloc(size_t size);
  16. void *calloc(size_t n, size_t size);
  17. void free(void *ptr);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif