public int initList(final int listNr) {
        int cnt = 0;
        int lp = listpointer = startpointer[listNr];
        while (lp != 0) {
            lp = ia[lp - 1];
            cnt++;
        }
        return cnt;
    }
Initialize a list for reading

@param listNr the list to initialize
@return the number of entries in that list
main/src/main/java/cgeo/geocaching/brouter/codec/LinkedListContainer.java