[Gambas-user] Get last errno from external function call

Benoit Minisini benoit.minisini at gambas-basic.org
Thu Oct 6 10:43:07 CEST 2022

Le 06/10/2022 à 01:30, vuott--- via User a écrit :
> Out of curiosity, maybe you could also try "System.GetExternSymbol ()":
>     Dim p As Pointer
>     p = System.GetExternSymbol("libgpiod", "errno")
>     Print Int@(p)

Don't do that, as 'errno' is not a global variable anymore according to 
the glibc manual ('man errno' says it's a C macro).


Benoît Minisini.

More information about the User mailing list