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

Benoit Minisini benoit.minisini at gambas-basic.org
Wed Oct 5 20:36:45 CEST 2022

Le 05/10/2022 à 04:29, Matheus Castello a écrit :
> Hi guys,
> I'm new to Gambas3, I'm trying to use it for embedded devices and I'm 
> doing some external function calls. There is some way in Gambas3 to get, 
> or Gambas runtime stores, the last errno from a external function call?
> I tried to get it directly from libc `__errno_location` but surely the 
> runtime must be making other calls that are overwriting the errno.
> Thanks in advance,
> Matheus Castello
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----

The 'System.Error' property returns the value of errno.


Benoît Minisini.

More information about the User mailing list