Return success status (#957)

This commit is contained in:
flyinghu 2022-09-30 16:50:08 +08:00 committed by GitHub
parent 889931acc8
commit 7e6276b730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ int switchValuesCArray(CArray *array, int position1, int position2)
int temp = array->array[position1];
array->array[position1] = array->array[position2];
array->array[position2] = temp;
return SUCCESS;
}
return INVALID_POSITION;
}