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

Matheus Castello matheus at castello.eng.br
Wed Oct 5 04:29:16 CEST 2022

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

More information about the User mailing list