The canonical way of doing what you want, is indeed going through the ordered list until you find the item and then going one item further to find the next. As you will not have lists with scores of thousands of items, the overhead seems small.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Gtk2 problems (again :)
by CountZero
in thread Gtk2 problems (again :)
by Martin A
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |