source: PSPA/madxPSPA/src/mad_util.c @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 396 bytes
Line 
1#define _POSIX_C_SOURCE 200112L
2#include "madx.h"
3
4#ifndef _WIN32
5#include <unistd.h>
6
7int
8intrac(void)
9{
10  /* returns non-zero if program is used interactively, else 0 */
11  return isatty(fileno(in->input_files[0]));
12}
13
14#else // _WIN32
15#include <io.h>
16
17int
18intrac(void)
19{
20  /* returns non-zero if program is used interactively, else 0 */
21  return _isatty(_fileno(in->input_files[0]));
22}
23
24#endif
25
Note: See TracBrowser for help on using the repository browser.