center

foundationI_fluffos_v1/lib/doc/SimulEfun/center · 568 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

Nightmare Mudlib SimulEfun: center()

varargs string center(string text, int screen);

DESCRIPTION
Returns the original string centered on the screen.  If no screen
width is specified, a screen width of 80 is assumed.

EXAMPLES
center("hi", 80) returns:
"				  hi                            "

LOCATION
/secure/SimulEfun/strings.c

NOTE
Like other string SimulEfuns, this exists only to make life easier on
cres.  sprintf() should be used for the sake of serious speed games
within the mudlib.

SEE ALSO
arrange_string(), strip_colours()

LAST MODIFIED
Nightmare 3.3

Site Stats

Snippets: 1791
Codebases: 571