Page History
...
IMPORTANT: You should always release the handle to an SRP Hash Table when you no longer need it by calling SRP_HashTable_Release.
Examples
Code Block |
---|
// Create a case-insensitive hash table Handle = SRP_HashTable_Create() // Set the chores to be done on each day of the week // Note that Sunday is created but it's paired value is "" SRP_HashTable_Set(Handle, "Sunday") SRP_HashTable_Set(Handle, "Monday", "Vacuum") SRP_HashTable_Set(Handle, "Tuesday", "Take out garbage") SRP_HashTable_Set(Handle, "Wednesday", "Mow the lawn") SRP_HashTable_Set(Handle, "Thursday", "Clean bathroom") SRP_HashTable_Set(Handle, "Friday", "Dust") SRP_HashTable_Set(Handle, "Saturday", "Have fun!") |