home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11670 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1002 b   |  28 lines

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