Guide API
Skip to main content

history_count

Function history_count 

Source
pub fn history_count(id: u8) -> usize
Expand description

Return the number of history entries for id.

history_str(id, 0) is the oldest; history_str(id, count-1) is the newest. Use this to range-check an index before calling history_str, or to drive a list viewer over the stored entries.

ยงTurbo Vision heritage

Ports historyCount (histlist.cpp); return type changed from Word to usize (idiomatic).