fprintf (stderr, ("Error: ..."));
fflush (stdout);In contrast, stderr is not buffered; data written to stderr goes directly to the console.
while (1) { printf ("."); sleep (1); }In this loop, however, the periods do appear once a second:
while (1) { fprintf (stderr, "."); sleep (1); }