RosettaCodeData/Task/Call-a-function-in-a-shared-library/Tcl/call-a-function-in-a-shared-library.tcl

9 lines
235 B
Tcl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
package require Ffidl
if {[catch {
ffidl::callout OpenImage {pointer-utf8} int [ffidl::symbol fakeimglib.so openimage]
}]} then {
# Create the OpenImage command by other means here...
}
set handle [OpenImage "/the/file/name"]