Rename the suffix _get_at to the _safe_get suffix

(Better & clearer naming of the function)
This commit is contained in:
Patrick Pelissier committed 2021-10-30 00:04:07 +02:00
1 parent e650addfe4
commit 51d4e930f5
9 files changed
+52 -27

No files matched your search

+1 -1
View File
@@ -309,7 +309,7 @@ static void test_d(void)
for(int i = 9; i < 19; i++)
assert (*array_uint_get (a1, (size_t) i) == 18U -(unsigned int) i);
*array_uint_get_at(a1, 100) = 100;
*array_uint_safe_get(a1, 100) = 100;
assert (*array_uint_back(a1) == 100);
assert (array_uint_size(a1) == 101);
array_uint_pop_back (NULL, a1);