test2.c 332 B

123456789101112131415161718
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include <stdio.h>
  6. #include <stdio.h>
  7. extern void
  8. shared_heap_free(void *ptr);
  9. void
  10. print_buf(char *buf)
  11. {
  12. printf("wasm app2's wasm func received buf: %s\n\n", buf);
  13. shared_heap_free(buf);
  14. }