Article View: comp.sys.amiga.tech
Article #6168Tags - How do they work.
From: Russell McOrmond
Date: Mon, 29 Oct 1990 00:17
Date: Mon, 29 Oct 1990 00:17
51 lines
1536 bytes
1536 bytes
Well, it seems that I don't fully understand the concept of Tags. I am
trying to make use of the 2.0 System() command, but my knowledge of Tags is
presenting me with a problem.
Here's a code sample. What obvious thing am I doing wrong ;-)
#include <stdio.h>
#include <dos/dostags.h>
#include <clib/dos_protos.h>
main(argc, argv)
int argc;
char *argv[];
{
FILE *outfile,*infile;
int rc;
if (!(outfile = fopen("tempout","w"))) {
printf("error opening outfile\n");
exit(1);
}
if (!(infile = fopen("tempin","r"))) {
printf("error opening infile\n");
fclose(outfile);
exit(1);
}
rc = System(argv[1],
(
SYS_Input, infile,
SYS_Output, outfile,
SYS_Asynch, FALSE,
TAG_DONE
)
);
printf("%d from %s\n",rc,argv[1]);
fclose(infile);
fclose(outfile);
}
---
Opinions expressed in this message are my Own. My Employer does not even
know what these networks ARE.
Russell McOrmond rwm@atronx.UUCP {fts1,alzabo}!atronx!rwm
FidoNet 1:163/109 Net Support:
Technical Details
Message-ID:
<53151.657181050@atronx.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!cunews!fts1!atronx!rwmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!fts1!atronx!rwm From: rwm@atronx.UUCP (Russell McOrmond) Newsgroups: comp.sys.amiga.tech Subject: Tags - How do they work. Message-ID: <53151.657181050@atronx.UUCP> Date: Mon Oct 29 00:17:30 1990 Followup-To: comp.sys.amiga.tech