ixml/src/node.c
static int ixmlNode_setPrefix(
	/*! [in] The \b Node on which to operate. */
	IXML_Node *nodeptr,
	/*! [in] The prefix string to set. */
	const char *prefix)
{
	if (nodeptr == NULL) {
		return IXML_INVALID_PARAMETER;
	}

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

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

	return IXML_SUCCESS;
}
/*
 * \brief Set the prefix of the node.
 */
\brief Set the prefix of the node.
\ brief Set the prefix of the node .
static int ixmlNode_setPrefix(
	IXML_Node *nodeptr,
	const char *prefix)
{
	if (nodeptr == NULL) {
		return IXML_INVALID_PARAMETER;
	}
	if (nodeptr->prefix != NULL) {
		free(nodeptr->prefix);
		nodeptr->prefix = NULL;
	}
	if (prefix != NULL) {
		nodeptr->prefix = strdup(prefix);
		if(nodeptr->prefix == NULL) {
			return IXML_INSUFFICIENT_MEMORY;
		}
	}
	return IXML_SUCCESS;
}
static int ixmlNode_setPrefix ( IXML_Node * nodeptr , const char * prefix ) { if ( nodeptr == NULL ) { return IXML_INVALID_PARAMETER ; } if ( nodeptr -> prefix != NULL ) { free ( nodeptr -> prefix ) ; nodeptr -> prefix = NULL ; } if ( prefix != NULL ) { nodeptr -> prefix = strdup ( prefix ) ; if ( nodeptr -> prefix == NULL ) { return IXML_INSUFFICIENT_MEMORY ; } } return IXML_SUCCESS ; }
\brief Set the prefix of the node.
\ brief Set the prefix of the node .
/*! [in] The \b Node on which to operate. */ /*! [in] The prefix string to set. */