Article View: comp.sys.amiga.tech
Article #6224Re: Tags - How do they work.
From: Mark Waggoner
Date: Wed, 31 Oct 1990 17:31
Date: Wed, 31 Oct 1990 17:31
40 lines
1803 bytes
1803 bytes
In article <53151.657181050@atronx.UUCP> rwm@atronx.UUCP (Russell McOrmond) writes:
>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.
I don't know anything about tags and, therefore, my comments below
are no more than educated guesses...
The program below has been edited down:
> FILE *outfile,*infile;
> int rc;
>
> if (!(outfile = fopen("tempout","w"))) {
...
> if (!(infile = fopen("tempin","r"))) {
...
> rc = System(argv[1],
> (
> SYS_Input, infile,
> SYS_Output, outfile,
> SYS_Asynch, FALSE,
> TAG_DONE
> )
> );
It seems to me unlikely that the System call would use FILE arguments
(the infile and outfile parameters) and more likely that it would use
a pointer or BPTR to a FileHandle returned by the Dos function Open().
A FILE is defined by the library provided by the compiler vendor and
the System() call wouldn't know how to use it.
--
Mark Waggoner Santa Clara, CA (408) 721-6306 waggoner@dtg.nsc.com
Unofficially representing National Semiconductor Local Area Networks Group
Officially misrepresenting myself.
Technical Details
Message-ID:
<1479@icebox.nsc.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!apple!voder!dtg.nsc.com!waggonerReferences:
<53151.657181050@atronx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!usc!apple!voder!dtg.nsc.com!waggoner From: waggoner@dtg.nsc.com (Mark Waggoner) Newsgroups: comp.sys.amiga.tech Subject: Re: Tags - How do they work. Message-ID: <1479@icebox.nsc.com> Date: 31 Oct 90 17:31:45 GMT References: <53151.657181050@atronx.UUCP> Reply-To: waggoner@icebox.UUCP (Mark Waggoner) Organization: National Semiconductor, Santa Clara Lines: 40