2019-09-26 11:35:37 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
2019-11-11 23:45:21 +00:00
|
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2019-09-26 11:35:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WAMR_LIBC_STDLIB_H
|
|
|
|
#define _WAMR_LIBC_STDLIB_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
|
2019-11-20 13:16:36 +00:00
|
|
|
int atoi(const char *s);
|
|
|
|
void exit(int status);
|
|
|
|
long strtol(const char *nptr, char **endptr, register int base);
|
2019-11-25 15:16:40 +00:00
|
|
|
unsigned long strtoul(const char *nptr, char **endptr, register int base);
|
2019-09-26 11:35:37 +00:00
|
|
|
void *malloc(size_t size);
|
|
|
|
void *calloc(size_t n, size_t size);
|
|
|
|
void free(void *ptr);
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|