RosettaCodeData/Task/Call-a-function-in-a-shared-library/Tcl/call-a-function-in-a-shared-library.tcl
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07: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"]