#include <cstring> #include "Enclave_t.h" void ecall_hello_enclave(char *buf, size_t len) { strncpy(buf, "Hello, enclave!", len-1); buf[len-1] = '\0'; }