From:	MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 29-MAY-1992 13:15:16.14
To:	tron!schanck, INFO-VAX@SRI.COM
CC:	
Subj:	Re: Help with item_list_3 structure in Vax C

> After zooming through the Bookreader files and communing with the grey books,
> I need some help using the item_list_3 structure in Vax C.  In particular,
> I want to use the sys$device_scan service.  According to my Vax C docs, C
> has no predefined equivalents for quad_word (8 bytes, yes?) and for
> item_list_3.  I went and defined a structure mirroring the item_list_3 type.
> 
> But I am unsure how exactly to define: "the address of a list of item
> descriptors, terminated by a longword of 0."  Does this mean an array of
> item_list elements, with a trailer element whose first longword is 0?
> 
> Vax Docs do not seem to have any samples, so here I am.  Anyone have any
> scraps of code using the item_list_3 type and system services?

Try something like:

struct item3 {
             short buflen,cod;
             long bufadr,retlenadr;
             };

struct item3 itemlist[2] = { {XXX$_XXXXXX,sizeof(Y),&Y,&Z} , {0,0,0,0} };

SYS$nnnnnn(&itemlist);

                                                          Arne Vajhxj

Arne Vajhxj                             local DECNET:  KO::ARNE
Computer Department                     PSI:           PSI%238310013040::ARNE
Business School of Southern Denmark     Internet:      ARNE@KO.HHS.DK


