この例では、FNC_SetArrayElementsを呼び出して、位置2の構成要素にnewVal引数の値を設定します。
/* This function sets one single element value. */ void setOneElement ( ARRAY_HANDLE *phone_ary, CHARACTER_LATIN newVal[10], INTEGER *result, char sqlstate[6]) { int nullIndicator; bounds_t arrayRange; nullIndicator = 0; arrayRange.lowerBound = 2; arrayRange.upperBound = 2; /* Set the element in position 2 to the value of newVal. */ FNC_SetArrayElements(*phone_ary, &arrayRange, (void*)newVal, nullIndicator, SIZEOF_CHARACTER_LATIN_WITH_NULL(10)); ... }