lua-users home
lua-l archive

Writing to a file from C

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a program that's storing data in specially-encoded strings.
I would like to write a function that massages the data and writes it out to a
file. Because this needs to be fast, it has to be done from C. But the file
has been opened from Lua and is a standard io.open() object.
Is there a (standard) way I can get the FILE* corresponding to an io object,
from C?
- --
┌── dg@cowlark.com ─── http://www.cowlark.com ───────────────────
│
│ "There does not now, nor will there ever, exist a programming language in
│ which it is the least bit hard to write bad programs." --- Flon's Axiom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4uhyf9E0noFvlzgRAr1LAJ0VlJQUKAOF/P2CltVl9C13D/OPPwCg4Odi
WFdmVCkarN5D0Zgc2XWSuyg=
=QD4F
-----END PGP SIGNATURE-----

AltStyle によって変換されたページ (->オリジナル) /