/* newstrea.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */

#include <sys/emx.h>
#include <stdio.h>

FILE *_newstream (void)
{
  int i;

  for (i = 0; i < _nfiles; ++i)
    if (!(_streamv[i].flags & _IOOPEN))
      return (&_streamv[i]);
  return (NULL);
}
