IterNext
Description
Propagating advance by one position in the iteration direction.
Success
Position is updated, returns true.
Failure
Iterator is already exhausted, returns false.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Iter.c:209:
const u8 buf[3] = {0};
BufIter it = BufIterFromMemory(buf, 3);
if (!IterNext(&it) || IterIndex(&it) != 1) {
return false;
}- In
Iter.c:212:
return false;
}
if (!IterNext(&it) || IterIndex(&it) != 2) {
return false;
}- In
StrIter.h:69:
/// TAGS: StrIter, Next, Advance, Alias
///
#define StrIterNext(si) IterNext((si))
///
Last updated on