getitem(filename,it,ty,item,buff) char *filename; /* pathname of file */ int it; /* item type */ char *ty; /* item specifier */ struct item_header *item; /* returned item header */ void *(buff[]); /* returned buffer address */ putitem(filename,item,numf,buff) char *filename; /* pathname of file */ struct item_header *item; /* item header */ int numf; /* # frames to write */ void *buff; /* buffer address */ putNitems(filename,item,numf,buff,numitem) char *filename; /* pathname of file */ struct item_header *item; /* item header */ int numf; /* # frames to write */ void *buff; /* buffer address */ int numitem; /* number of items */
putitem adds to existing data file filename the data set described by item, numf and buff.
putNitems is a generalisation of putitem for adding multiple items to a file. putNitems stores the data sets passed in item, numf and buff in temporary files and only updates the existing data file filename the last time it is called. The parameter numitem should be used to specify the number of data sets. Example use is:
#define NUMITEMS 3 : putNitems(filename,&item1,numf1,data1,NUMITEMS); : putNitems(filename,&item2,numf2,data2,NUMITEMS); : putNitems(filename,&item3,numf3,data3,NUMITEMS);