Correct backtrace() array size argument
[forms.git] / src / F_Batch_UI.C
blob8a48b47c21962124111e9f88b685ab9dabafe2a2
2  /*
3   *   Copyright (C) 2007, Harbour, All rights reserved.
4   */
6 #include <F_Batch_UI.H>
8 using namespace F;
9 using namespace ost;
11 static bool stream_is_present(FILE *stream)
13  if ((::fileno(stream) < 0) || ::ferror(stream))
14    return false;
15  return true;
18 bool F_Batch_UI::probe()
20  if (!stream_is_present(stdin) || !stream_is_present(stdout) ||
21        !stream_is_present(stderr))
22          return false;
23  return true;