A
          / \      _              Play Now                         Nemesis on 
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/lib/ladjust


Simul efun: ladjust - make string with a fixed length

Synopsis:
	string ladjust(string str, int length)

Description:
	Makes a string <length> characters long, either by truncating it
	if it is too long, or by filling it up with spaces if it's too short.

Return value:
	returns a string of the fixed length 'length'

Examples:
	ladjust("12345", 10) returns "12345     "
	ladjust("1234567890", 5) returns "12345"

See also:


This page was generated in LPC

Imprint / Impressum