mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
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];
|
int temp = array->array[position1];
|
||||||
array->array[position1] = array->array[position2];
|
array->array[position1] = array->array[position2];
|
||||||
array->array[position2] = temp;
|
array->array[position2] = temp;
|
||||||
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
return INVALID_POSITION;
|
return INVALID_POSITION;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user