API Guide
601355 Rev A API Functions 2-433
Functions
47 VSID_ENDFIELD);
48 /* remove the entry from the table
*/
49 VS_Table_RemoveEntry(tableh, ip);
50 /* set this entry to a NULL
pointer */
51 VS_Table_SetFields(tableh,
52 VSID_TABLE_ENTRY, i, NULL,
53 VSID_ENDFIELD);
54 /* print the value retrieved from
the table */
55 printf(“Drive ID #%d = %d\n”, i,
*ip);
56 }
57 /* destroy the table */
58 VS_Table_Destroy(tableh);
59 return(rc);
60 }
Notes A table cannot store NULL pointers.
Table entries are zero-based (like arrays in C). The first entry in
an empty table is stored in position 0, the second entry in a table
is stored in position 1, and the nth entry in a table is stored in
position n-1.
The VSID_TABLE_ENTRY parameter requires that two
arguments be passed instead of one. The first argument is the
position where the specified entry is added to the table. The
second argument is the entry to be added to the table.
Note
If the argument list does not end with VSID_ENDFIELD,
unpredictable results occur.