void cpiAddBefore( int* returnCode, CciElement* targetElement, CciElement* newElement);
Nessuno. Se si verifica un errore, il parametro returnCode indica il motivo dell'errore.
void cpiSetElementValue( CciParser* parser, CciElement* element, CciElementValue* value ){ CciElement* newElement; int rc; if ((cpiElementType(&rc, element) == CCI_ELEMENT_TYPE_VALUE) || (cpiElementType(&rc, element) == CCI_ELEMENT_TYPE_NAME_VALUE)) { cpiSetElementValueValue(&rc, element, value); } else if (cpiElementType(&rc, element) == CCI_ELEMENT_TYPE_NAME) { /* Crea un nuovo elemento valore, lo aggiunge prima dell'elemento valore corrente e ne imposta il valore */ newElement = cpiCreateElement(&rc, parser); cpiSetElementType(&rc, newElement, CCI_ELEMENT_TYPE_VALUE); cpiSetElementValueValue(&rc, newElement, value); cpiAddBefore(&rc, element, newElement); } else { } return; }