HP3000-L Archives

February 1995, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Elmer <[log in to unmask]>
Reply To:
Steve Elmer <[log in to unmask]>
Date:
Tue, 7 Feb 1995 00:24:42 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
David,
 
If you are writing in HP C, don't forget
 
#pragma intrinsic HPCIPUTVAR
 
!!!
 
Here is a code snippet from a test program:
 
#pragma intrinsic HPCIPUTVAR
/*-------------------------------------------------------------------------*/
/* this procedure is called by test programs. it calls HPCIPUTVAR to set   */
/* CI variable to the passed int value.                                    */
/*-------------------------------------------------------------------------*/
void Put_Int_Var(char *varname, int value)
  {                                                   /* Put_Int_Var */
     hpe_status  status;
     unsigned keyword;
     int keyvalue;
 
     keyword = 1;                     /* integer value to be assigned */
     keyvalue = value;
 
     HPCIPUTVAR(varname, &status, keyword, &keyvalue);
 
     if (status.all != 0)
        log_err_status("HPCIPUTVAR in Put_Int_Var", status);
  }                                                   /* Put_Int_V */
 
Put_Int_Var("PPXES10N", 127);
 
Steve

ATOM RSS1 RSS2