// return the next empty Mark slot for use with MarkPosition static GetMarkedNext() { auto slot; slot = 1; //loop until we find an empty slot while( -1 != GetMarkedPos(slot) ) {slot++;} return slot; }