FORMAT_PAGE(1) FORMAT_PAGE(1)
NNAAMMEE
_f_o_r_m_a_t___p_a_g_e_(_) - returns a string of formatted columns from
an array
SSYYNNOOPPSSIISS
string format_page(string *items, int columns)
DDEESSCCRRIIPPTTIIOONN
Given an array of strings and a number of columns as
arguments, this function formats the array into a single
string with the elements put into the number of columns
specified. Unfortunately, as this SimulEfun predates
Nightmare terminal support, this SimulEfun only supports
80 character screen widths.
EEXXAAMMPPLLEESS
format_page(({ "house", "car", "cat", "mouse", "dog" }),
3) returns "house car
cat
mouse dog"
NNOOTTEESS
This SimulEfun is pretty much out of date and useless for
new uses.
LLOOCCAATTIIOONN
/secure/SimulEfun/strings.c
SSEEEE AALLSSOO
_a_r_r_a_n_g_e___s_t_r_i_n_g_(_), _c_e_n_t_e_r_(_), _f_o_r_m_a_t___s_t_r_i_n_g_(_), _w_r_a_p_(_)
AAuutthhoorr
Descartes of Borg
1