[xml] Hash question: behavior of a hash with xmlHashAddEntry and xmlHashAddEntry2 types
- From: "David Hagood" <david hagood gmail com>
- To: xml gnome org
- Subject: [xml] Hash question: behavior of a hash with xmlHashAddEntry and xmlHashAddEntry2 types
- Date: Mon, 19 Mar 2007 14:56:45 -0500
Given that I have created a hash with xmlHashCreate:
1) Is it valid to populate it with calls to both xmlHashAddEntry and xmlHashAddEntry2 - in other words, having entries with one or two strings.
2) What is the behavior of xmlHashLookup and xmlHashLookup2 in such a case?
For example, is the following code valid?
xmlHashAddEntry2(hash,BAD_CAST "Smokey",BAD_CAST "Bear",&bear);
xmlHashAddEntry(hash,"Smokey",&bandit);
And if so, what will xmlHashLookup(hash,BAD_CAST "Smokey") return?
The hash documentation isn't clear on whether this is valid or not.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]