IntIsOne
Description
Test whether the integer equals one.
Parameters
| Name | Direction | Description |
|---|---|---|
value |
in | Integer to inspect. |
Success
Returns true when the integer equals one.
Failure
Returns false otherwise.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Int.c:417:
}
bool IntIsOne(const Int *value) {
return int_is_one(value);
}- In
Int.Access.c:65:
bool test_int_is_one(void) {
WriteFmt("Testing IntIsOne\n");
DefaultAllocator alloc = DefaultAllocatorInit();- In
Int.Access.c:72:
Int two = IntFrom(2, &alloc.base);
bool result = IntIsOne(&one);
result = result && !IntIsOne(&two);- In
Int.Access.c:73:
bool result = IntIsOne(&one);
result = result && !IntIsOne(&two);
IntDeinit(&one);
Last updated on