home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!usc!rpi!batcomputer!cornell!uw-beaver!ubc-cs!newsserver.sfu.ca!sfu.ca!epang
- From: epang@fraser.sfu.ca (Eugene Pang)
- Subject: Re: Checking SetPatch version...
- Message-ID: <epang.712206554@sfu.ca>
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- References: <55151@mentor.cc.purdue.edu>
- Date: Mon, 27 Jul 1992 03:09:14 GMT
- Lines: 16
-
- tna@mentor.cc.purdue.edu (Trevor Andrews) writes:
- >What is the correct way of checking SetPatch's version from within
- >a program?
-
- Uh...
- long ver=0,rev=0;
-
- system("version >env:setpatch.ver c:setpatch"); /* on 2.04+ */
- sscanf(getenv("setpatch.ver"), "%ld.%ld", &ver, &rev);
-
- >I beleive some SetPatchs open a port... Is this true of
- >all of them? Can it be checked through its port?
-
- Yeah...they open a port ("SetPatch Port"). But since there's no task,
- there's also no task attached to the port. Makes it kind of hard to inquire
- the version/revision through the port...
-