topstrright
String
Return value
The portion of LASTN characters of S counted from the back.
Parameters
s
in
required
lastn
in
required
default: 1
Examples
add a "/" in to path if it "/" is not at the end :
IDL> path="/tmp"
IDL> if (strright(path) ne '/') then path = path + '/'
IDL> print,path
/tmp/
Version history
Version
$Id: strright.pro 374 2008-08-08 15:12:27Z pinsard $
Copyright (C) 1997, Martin Schultz, Harvard University
This software is provided as is without any warranty
whatsoever. It may be freely used, copied or distributed
for non-commercial purposes. This copyright notice must be
kept with any copy of this software. If this software shall
be used commercially or sold as part of a larger package,
please contact the author to arrange payment.
Bugs and comments should be directed to mgs@io.harvard.edu
with subject "IDL routine strright"
History
mgs, 19 Nov 1997: VERSION 1.00
Statistics
McCabe cyclic | 4 |
McCabe essential | 1 |
McCabe modular design | 1 |