Logo Search packages:      
Sourcecode: coreutils version File versions

t-fpending.c

/* Ensure that __fpending works.  */

#include <config.h>
#include <stdio.h>
#include <stdlib.h>

#include "__fpending.h"

int
main ()
{
  if (__fpending (stdout) != 0)
    abort ();

  fputs ("foo", stdout);
  if (__fpending (stdout) != 3)
    abort ();

  fflush (stdout);
  if (__fpending (stdout) != 0)
    abort ();

  exit (0);
}

Generated by  Doxygen 1.6.0   Back to index