mirror of https://github.com/TheAlgorithms/C
Return success status (#957)
This commit is contained in:
parent
889931acc8
commit
7e6276b730
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue