Call a function in a shared library: Difference between revisions

Added Arturo implementation
(→‎{{header|Crystal}}: added second part of the problem, falling back to a different function)
(Added Arturo implementation)
Line 109:
end if;
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}}==
1,532

edits