lua-users home
lua-l archive

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


Sean Conner <sean@conman.org> wrote:
>
> The biggest limitation---you can't treat an arbitrary region of
> memory as a FILE *.

On BSD (including Mac OS) there is funopen() which is roughly equivalent
to glibc's fopencookie(). Both allow you to plug in your own IO functions
behind stdio's buffering.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Trafalgar: Southwesterly veering northwesterly 6 to gale 8, perhaps severe
gale 9 later in south. Very rough in southeast, otherwise high or very high.
Rain or squally, thundery showers. Moderate or poor.