From 07fbf865fe5f4a8f6f352c5419bbccccc99eb336 Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Sun, 19 Jul 2026 20:14:13 +0500 Subject: js init --- script/entry.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 script/entry.c (limited to 'script/entry.c') diff --git a/script/entry.c b/script/entry.c new file mode 100644 index 0000000..a8f3b68 --- /dev/null +++ b/script/entry.c @@ -0,0 +1,16 @@ +#include +#include + +void* allocate(size_t size) { + return malloc(size); +} + +// Expose free so JS can clean up memory and prevent leaks +void deallocate(void* ptr) { + free(ptr); +} + + +const char *entry(const char *input) { + return strdup(input); +} -- cgit v1.3