Call a function in a shared library: Difference between revisions

Content added Content deleted
(→‎{{header|Crystal}}: added second part of the problem, falling back to a different function)
(Added Arturo implementation)
Line 109: Line 109:
end if;
end if;
end Shared_Library_Call;</lang>
end Shared_Library_Call;</lang>

=={{header|Arturo}}==

<lang rebol>getCurlVersion: function [][
try? [
call.external:'curl "curl_version" .expect: :string []
]
else [
"library not found"
]
]

print ["curl version:" getCurlVersion]</lang>

{{out}}

<pre>curl version: libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.41.0 </pre>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==