From 7e6276b730679b7e8c89d2d748b1ebce7e4a21b5 Mon Sep 17 00:00:00 2001 From: flyinghu <48802940+flyinghu123@users.noreply.github.com> Date: Fri, 30 Sep 2022 16:50:08 +0800 Subject: [PATCH] Return success status (#957) --- data_structures/array/carray.c | 1 + 1 file changed, 1 insertion(+) diff --git a/data_structures/array/carray.c b/data_structures/array/carray.c index 58840f41..7b812eb7 100644 --- a/data_structures/array/carray.c +++ b/data_structures/array/carray.c @@ -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; }