wasm-micro-runtime/samples/shared-heap/wasm-apps/test2.c

19 lines
332 B
C
Raw Normal View History

2024-09-20 08:13:20 +00:00
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include <stdio.h>
#include <stdio.h>
extern void
2024-09-29 04:50:59 +00:00
shared_heap_free(void *ptr);
2024-09-20 08:13:20 +00:00
void
print_buf(char *buf)
{
printf("wasm app2's wasm func received buf: %s\n\n", buf);
2024-09-29 04:50:59 +00:00
shared_heap_free(buf);
2024-09-20 08:13:20 +00:00
}