On Thu, Mar 20, 2008 at 07:45:26PM -0500, Govind Salinas wrote:
This adds a %z format which prints out a null character. This allows for
easier machine parsing of multiline data. It is also necessary to use write
to print out the data since printf will terminate at a null. That in turn
requires that an fflush be executed before the write to preserve the order
the data is printed.
How about using fwrite instead of write?
-Peff