Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 1996 12:01:19 +0100 (BST)
From:      Developer <dev@fgate.flevel.co.uk>
To:        freebsd-current@freebsd.org
Subject:   File handle -> char* ?
Message-ID:  <Pine.BSI.3.93.960830115907.6260A-100000@fgate.flevel.co.uk>

next in thread | raw e-mail | index | archive | help

Is there any way in which I can pass a routine a file handle and make the
data just go into a buffer which I can then use as a char* later? The only
way Ive thought of doing it at the moment is saving it to a temp file and
then reading it back, but that is very inefficent.. I can`t really do it
with a pipe because the function I am calling has side effects and I`d
need to fork.. thus losing them..

Any ideas?

Regards,

Trefor S.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.93.960830115907.6260A-100000>