HP3000-L Archives

February 1999, Week 3

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:
Walter Murray <[log in to unmask]>
Reply To:
Walter Murray <[log in to unmask]>
Date:
Thu, 18 Feb 1999 20:38:43 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Paul H. Christidis ([log in to unmask]) wrote:
: Does anyone have an example in C on how to retrieve the value of a CI Boolean
: variable.

-----cut here-----
#include <assert.h>
#include <stdio.h>
#pragma intrinsic HPCIGETVAR
main(void)
{
   int status, boolean_value;
   char varname[] = "HPQUIET";
   HPCIGETVAR(varname, &status, 3, &boolean_value);
   assert(status == 0);
   printf("Value of %s is %s\n", varname,
         boolean_value ? "TRUE" : "FALSE");
}
-----cut here-----

Walter Murray
Hewlett-Packard

ATOM RSS1 RSS2