format_page

ds2.10/lib/doc/sefun/format_page · 1.0 KB

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

FORMAT_PAGE(1)                                     FORMAT_PAGE(1)

NAME
       format_page() - returns a string of formatted columns from
       an array

SYNOPSIS
       string format_page(string *items, int columns)

DESCRIPTION
       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 sefun predates
       Nightmare terminal support, this sefun only supports
       80 character screen widths.

EXAMPLES
       format_page(({ "house", "car", "cat", "mouse", "dog" }),
       3) returns "house                       car
       cat
        mouse                       dog"

NOTES
       This sefun is pretty much out of date and useless for
       new uses.

LOCATION
       /secure/sefun/strings.c

SEE ALSO
       arrange_string(), center(), format_string(), wrap()

Author
       Descartes of Borg

                                                                1

Site Stats

Snippets: 1791
Codebases: 571