Skip to content

ferror

builtin · libnexusinterp/corefcn/file-io-proprietary.cc

: [msg, err] = ferror (fid)
: [msg, err] = ferror (fid, "clear")

Return the pending error message and error number of the stream fid.

With the argument "clear" the error state is reset afterwards.