API Guide
2-420 API Functions 601355 Rev A
43 for (i = 0; i < numentries; i++)
44 {
45 VS_Table_GetFields(tableh,
46 VSID_TABLE_ENTRY, i, &ip,
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 After VS_Table_Destroy has been called for a table handle,
that handle is no longer valid and should not be used.
If a client adds entries to a table using VS_Table_AddEntry
or VS_Table_SetFields functions, it is the client’s
responsibility to maintain the data after it is stored in the table.
It is also the client’s responsibility to deallocate the space
containing the data after the entry has been deleted from the
table and is no longer needed.