engOutputBuffer (Fortran) - Specify buffer for MATLAB output - MATLAB (original) (raw)
Main Content
Specify buffer for MATLAB output
Fortran Syntax
#include "engine.h" integer4 engOutputBuffer(ep, p) mwPointer ep charactern p
Description
engOutputBuffer
defines a character buffer forengEvalString
to return any output that ordinarily appears on the screen. Returns 1
if you pass it a NULL
engine pointer. Otherwise, returns 0
.
The default behavior of engEvalString
is to discard any standard output caused by the command it is executing. A call to engOutputBuffer
with a buffer of nonzero length tells any subsequent calls toengEvalString
to save output in the character buffer pointed to byp
.
To turn off output buffering in Fortran, use:
Note
The buffer returned by engEvalString
is not NULL
terminated.
Input Arguments
Pointer to engine, specified as mwPointer
.
Pointer to character buffer, specified as character*n
, wheren
is the length of the buffer.
Version History
Introduced before R2006a