lua-users home
lua-l archive

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

On Mon, Jul 15, 2013 at 11:53 AM, jseb <> wrote:
> Hello,
> I'd like to accumulate stdio to a buffer.

fmemopen() in POSIX systems grants access to a memory buffer in form
of a STREAM. On the C side, do `f = fmemopen(...); stdin = f;`

There are Lua POSIX libraries that possibly provide this as well.