Skip to content

fprintf

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

: fprintf (fid, template, …)
: fprintf (template, …)
: count = fprintf (…)

Write formatted text to the file fid (standard output when omitted).

The template uses C-style conversions (%d, %f, %s, …) and is reused while data remains. With an output argument the number of bytes written is returned.