MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / stack_is_less

Function stack_is_less

stack/stack.c:249–255  ·  view source on GitHub ↗

@brief Lexicographic less-than over the underlying vector bytes. */

Source from the content-addressed store, hash-verified

247 }
248 if (!stk1 || !stk2 || !stk1->vec || !stk2->vec) {
249 return false;
250 }
251
252 return vector_is_equal(stk1->vec, stk2->vec);
253}
254
255
256/** @brief Inverse of stack_is_equal. */
257bool stack_is_not_equal(const Stack* stk1, const Stack* stk2) {
258 return !stack_is_equal(stk1, stk2);

Callers 1

stack_is_less_or_equalFunction · 0.85

Calls 1

vector_is_lessFunction · 0.85

Tested by

no test coverage detected