RosettaCodeData/Task/Call-a-function-in-a-shared-library/Tcl/call-a-function-in-a-shared-library.tcl
2023-07-01 13:44:08 -04:00

8 lines
235 B
Tcl

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"]