# $EPIC: pad.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $ ======Synopsis:====== $__pad__( ) ======Technical:====== * The argument is a [[what is a word|dword]] which is different from most function arguments. * If the argument is omitted the empty string is returned. * If the argument is omitted the empty string is returned. * The argument may be positive or negative. * Although the argument can be a string, only the first character is actually used. * If the absolute value of is less than the length of , then is returned. * The number of "neccesary repetitions" is ([[abs]]() - [[strlen]]()). * If is negative, then the return value is "neccesary repetitions" of the first character in prepended to . * If is positive, then the return value is "neccesary repetitions" of the first character in appended to . ======Practical:====== This function is especially useful for forcing strings to a minimum length, possibly for a script that hooks and displays a /[[names]] reply. ======Returns:====== padded with a number of s until its length is ======Examples:====== $pad(8 ! test) returns "test!!!!" ======History:====== This function first appeared in EPIC4pre1.046