vector
vector copied to clipboard
The code in vector_move may have problem
int vector_move(Vector* destination, Vector* source) { assert(destination != NULL); assert(source != NULL);
if (destination == NULL) return VECTOR_ERROR;
if (source == NULL) return VECTOR_ERROR;
*destination = *source;
source->data = NULL;
return VECTOR_SUCCESS;
}
should destination = source