There is a library, called exodriver downloadable from 'labjack' which gives its library version (2.07) as a 32 bit float through it's function LJUSB_GetLibraryVersion().This I have verified by importing this function in another programming language.
But newLisp v10.76 returns a value 0 instead of 2.07 when the following expression is used:
(import "liblabjackusb.so" "LJUSB_GetLibraryVersion" "float") followed by (LJUSB_GetLibrarVersion) returns a value 0 instead of 2.07.
Perhaps that is because "float" is a cut down version of "double"?
I just checked that there is segmentation fault reading a flost from libc on linux 64 bit, as follows:
(import "libc.so.6" "strtof" "float" "char*")
(strtof "2.07")
yields segmentation fault.
I would appreciate if this issue is resolved.
But newLisp v10.76 returns a value 0 instead of 2.07 when the following expression is used:
(import "liblabjackusb.so" "LJUSB_GetLibraryVersion" "float") followed by (LJUSB_GetLibrarVersion) returns a value 0 instead of 2.07.
Perhaps that is because "float" is a cut down version of "double"?
I just checked that there is segmentation fault reading a flost from libc on linux 64 bit, as follows:
(import "libc.so.6" "strtof" "float" "char*")
(strtof "2.07")
yields segmentation fault.
I would appreciate if this issue is resolved.