$rtrim()
DESCRIPTION
returns a string stripped of any trailing (rightmost) whitespace
SYNOPSIS
$rtrim(s)
ARGUMENTS
s - a quoted string, or string expression
EXAMPLES
# pikt +C 'output $rtrim("fit and trim ")'
fit and trim
rule
set $il = $rtrim($inlin)
#if irix
// irix alone adds the first "/core:" line:
//
// # file /core 2>/dev/null
// /core:
// cannot open /core: No such file or directory
//
// so we add:
if $rtrim($inline) eq "/core:"
next // skip this line
endif
#endif
SEE ALSO
$ltrim()
$trim()
$chop()
$middle(), $substring()
$left()
$right()
String Functions
Numerical Functions