12.9.3 Interacting with foreign streams
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Foreign Language Interface
Foreign access to Prolog IO streams
Interacting with foreign streams
Sset_timeout()
Sunit_size()
Sputc()
Sgetc()
Sfgetc()
Sungetc()
Sputcode()
Sgetcode()
Speekcode()
Sputw()
Sgetw()
Sfread()
Sfwrite()
Sfeof()
Sfpasteof()
Ssetlocale()
Sflush()
Ssize()
Sseek()
Sseek64()
Stell()
Stell64()
Sclose()
Sgcclose()
Sfgets()
Sgets()
Sread_pending()
Spending()
Sfputs()
Sputs()
Sfprintf()
SfprintfX()
Sprintf()
Svprintf()
Ssprintf()
Ssnprintf()
SsnprintfX()
Svsprintf()
Svsnprintf()
Sdprintf()
SdprintfX()
Svdprintf()
Slock()
StryLock()
Sunlock()
Sfileno()
Swinsock()
Sclosehook()
Sset_filter()
Ssetbuffer()
Writing Prolog terms to foreign streams
Packages
Availability:
C-language interface function
void
Ssetbuffer
(
IOSTREAM *s, char *buf, size_t size
)
Set the input or output buffer for
s
to
size
. The
buf
argument is either
NULL
, asking the system to allocate a buffer or points at a buffer of (at least) the indicated size long. The default buffer size is defined by the C macro
SIO_BUFSIZE