Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!rutgers!ucsd!ucbvax!LBL.GOV!GG.SPY%ISUMVS%CUNYVM.CUNY.EDU%KL.SRI.COM%lbl%sfsu1.hepnet From: GG.SPY%ISUMVS%CUNYVM.CUNY.EDU%KL.SRI.COM%lbl%sfsu1.hepnet@LBL.GOV Newsgroups: comp.os.vms Subject: Re: LIB$INIT_TIMER Message-ID: <880528235248.23e037b4@LBL.Gov> Date: 29 May 88 06:52:48 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 34 Received: from KL.SRI.COM by LBL.Gov with INTERNET ; Sat, 28 May 88 21:49:48 PDT Received: from CUNYVM.CUNY.EDU by KL.SRI.COM with TCP; Thu 26 May 88 07:02:12-PDT Received: from ISUMVS.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with BSMTP id 3360; Thu, 26 May 88 09:58:02 EDT Date: Thu, 26 May 88 08:34:35 CDT To: From: "John Hascall" Subject: Re: LIB$INIT_TIMER > Date: Sat, 21 May 88 16:15:53 PST > Sender: INFO-VAX Discussion > From: Peter Scott > Subject: LIB$INIT_TIMER > To: John Hascall > > The documentation for LIB$INIT_TIMER states that it takes different actions > base on whether the argument handle-adr is absent, zero, or non-zero. > > How do you get the "absent" effect when calling from C? I have invariably > found that I have to specify a 0 explicitly as a parameter when calling > system routines where if I were using FORTRAN I would leave the argument > blank. > > Peter Scott (pjs%grouch@jpl-mil.jpl.nasa.gov) When a VMS routine's parameter is passed by reference (pass the address of the parameter) or by descriptor (pass the address of a block describing the parameter) then to "omit the parameter" means to pass the value 0 (zero). [FORTRAN does this for you when you leave a parameter blank]. John Hascall ISU Computation Center Ames, Iowa