home *** CD-ROM | disk | FTP | other *** search
- /* da_pipe(name, len) opens a pipeline to the named program
-
- Copyright (c) 1983, 1984, 1985 by JMI Software Consultants, Inc.
- */
- #include "acom.h"
- #include "host.h"
-
- FILE da_pipe(filename, len, isoutput)
- TEXT *filename;
- INT len;
- BOOL isoutput;
- {
- INT n;
-
- if ((n = da_special(filename, YES)) < 0)
- n = creat(filename, S_IWRITE);
- if (n >= 0)
- da_autoclos(n);
- return (n);
- }
-
- /* da_p_to(name, len) - open a pipe for output
- */
-
- FILE da_p_to(name, len)
- TEXT *name;
- INT len;
- {
- return (da_pipe(name, len, YES));
- }