stdout es 1 asi que estaras haciendo algo mal.
http://man7.org/linux/man-pages/man3/stdin.3.htmlOn program startup, the integer file descriptors associated with the streams stdin, stdout, and stderr are 0, 1, and 2, respectively.
Solo tenes que pasar el parametro stream con un valor de 1 (eso depende de la plataforma, 32 o 64 bits por ejemplo) y llamar a fflush. De ultima pasale 0 y listo.
If the stream argument is NULL, fflush() flushes all open output streams.
http://man7.org/linux/man-pages/man3/fflush.3.html