std-strcenter


Synopsis

(std-strcenter <str> <len>)

Description

std-strcenter add spaces to the beginning and end of the string, so that the resulting string is exactly len characters long.

Example

(std-strcenter "test" 10)  => "   test   "

Arguments

str: a string.

len: a positive integer number.

Return Value

A justified string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR