<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/STRING/

strright.pro

return right subportion from a string

topstrright String

result = strright(s, lastn)

Return value

The portion of LASTN characters of S counted from the back.

Parameters

s        in required

the string to be searched

lastn        in required default: 1

the number of characters to be returned. If NLAST is the strlen(STRING), the complete string is returned.

Examples

if (strright(path) ne '/') then path = path + '/'

Version history

Version

$Id: strright.pro 232 2007-03-20 16:59:36Z pinsard $

History

mgs, 19 Nov 1997: VERSION 1.00

Statistics

McCabe cyclic 4
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.