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