ixml/src/node.c
static int ixmlNode_setLocalName(
	/*! [in] The pointer to the node. */
	IXML_Node *nodeptr,
	/*! [in] The local name to set. */
	const char *localName)
{
	assert(nodeptr != NULL);

	if (nodeptr->localName != NULL) {
		free(nodeptr->localName);
		nodeptr->localName = NULL;
	}

	if (localName != NULL) {
		nodeptr->localName = strdup(localName);
		if (nodeptr->localName == NULL) {
			return IXML_INSUFFICIENT_MEMORY;
		}
	}

	return IXML_SUCCESS;
}
/*!
 * \brief Set the localName of the node.
 *
 * \return IXML_SUCCESS or failure.
 */
\brief Set the localName of the node.
\return IXML_SUCCESS or failure.
\ brief Set the localName of the node . \ return IXML_SUCCESS or failure .
static int ixmlNode_setLocalName(
	IXML_Node *nodeptr,
	const char *localName)
{
	assert(nodeptr != NULL);
	if (nodeptr->localName != NULL) {
		free(nodeptr->localName);
		nodeptr->localName = NULL;
	}
	if (localName != NULL) {
		nodeptr->localName = strdup(localName);
		if (nodeptr->localName == NULL) {
			return IXML_INSUFFICIENT_MEMORY;
		}
	}
	return IXML_SUCCESS;
}
static int ixmlNode_setLocalName ( IXML_Node * nodeptr , const char * localName ) { assert ( nodeptr != NULL ) ; if ( nodeptr -> localName != NULL ) { free ( nodeptr -> localName ) ; nodeptr -> localName = NULL ; } if ( localName != NULL ) { nodeptr -> localName = strdup ( localName ) ; if ( nodeptr -> localName == NULL ) { return IXML_INSUFFICIENT_MEMORY ; } } return IXML_SUCCESS ; }
\brief Set the localName of the node.
\ brief Set the localName of the node .
/*! [in] The pointer to the node. */ /*! [in] The local name to set. */