You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
I've added conversion of an io.* file handle to a FILE *. Actually
it converts to a void * because I don't want to expose a standard
'FILE' C type. But this doesn't matter as it converts to a FILE *
argument of a C function.
The changes have been pushed to git HEAD. Provided you add the
required C function declarations, you can do this now:
ffi.C.fputs("test\n", io.stderr)
ffi.C.fprintf(io.stderr, "Hello %s\n", "world")
if ffi.abi("win") then
print(ffi.C._fileno(io.stderr)) --> 2
else
print(ffi.C.fileno(io.stderr)) --> 2
end
Ditto for any file handle you get from io.open() or io.popen().
The text was updated successfully, but these errors were encountered:
Quoting Mike Pall:
The text was updated successfully, but these errors were encountered: