* xmlFastStrEqual: * @s1: string * @s2: string * * Compare two strings for equality, allowing NULL values. */
| 266 | * Compare two strings for equality, allowing NULL values. |
| 267 | */ |
| 268 | static int |
| 269 | xmlFastStrEqual(const xmlChar *s1, const xmlChar *s2) { |
| 270 | if (s1 == NULL) |
| 271 | return(s2 == NULL); |
| 272 | else |
| 273 | return((s2 != NULL) && |
| 274 | (strcmp((const char *) s1, (const char *) s2) == 0)); |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * xmlHashFindEntry: |
no outgoing calls
no test coverage detected