NAME

perprintf — enable automatic stream flushing

noperprintf - reset (disable) automatic stream flushing

SYNOPSIS

#include <stdio.h>

void perprintf(FILE * stream);
void noperprintf(FILE * stream)

DESCRIPTION

To flush the output immediately after executing a printf(), use perprintf(). This command sets the file stream to automatically flush the output after every write request on the selected stream.

To stop automatic output flushes, use noperprintf().

RETURN VALUES

None

ERRORS

No errors are defined.

EXAMPLE

void Init_function ()

{

//stdout init

perprintf(stdout_init("/dev/ttyS1"));

//stdin init

stdin_init ("/dev/ttyS1");

}

SEE ALSO

printf(), stdin_init(), stdout_init()


< Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2011 >