blob: ac7d01a89899f48e6f5f4cc28ac798dc0039a4d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_libc
#define import_xnames
#include <iraf.h>
/* C_STROPEN -- FIO string-file open.
*/
int
c_stropen (
XCHAR *obuf, /* string file-buffer */
int maxch, /* max chars in string */
int mode /* file access mode */
)
{
XINT x_maxch = maxch, x_mode = mode;
int fd;
iferr (fd = (int) STROPEN (obuf, &x_maxch, &x_mode))
return (ERR);
else
return (fd);
}
|