From 71cc46292ce4c9b36ed548012d293ade019e48ee Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 4 Jul 2023 12:49:47 +0900 Subject: [PATCH] updated the ffi section in README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 5d79ef08..20d86904 100644 --- a/README.md +++ b/README.md @@ -481,6 +481,19 @@ BEGIN ### ffi +- ffi::open +- ffi::close +- ffi::call +- ffi::errmsg + +``` +BEGIN { + ffi = ffi::open(); + if (ffi::call(ffi, r, @B"getenv", @B"s>s", "PATH") <= -1) print ffi::errmsg(); + else print r; + ffi::close (ffi); +} +``` ### mysql