User guide

18-44
DirectC Interface
So if we modify the C/C++ function in the previous example, it is as
follows:
void vector_printer (vc_handle h)
{
vec32 b,*c;
c=vc_4stVectorRef(h);
b=*c;
printf("\n b is %s \n\n",vc_toStringF(h,’b’));
printf("\n b is %s \n\n",vc_toStringF(h,’o’));
printf("\n b is %s \n\n",vc_toStringF(h,’d’));
printf("\n b is %s \n\n",vc_toStringF(h,’x’));
}
This example now displays:
b is zx01zx01
b is XZX
b is X
b is XX
void vc_putReal(vc_handle, double)
Passes by reference a real (double) value to a vc_handle. For
example:
void get_PI(vc_handle h)
{
vc_putReal(h, 3.14159265);
}