;+ ; NAME: ; strend ; PURPOSE: (one line) ; Return the last n characters in a string ; DESCRIPTION: ; ; CATEGORY: ; Utility ; CALLING SEQUENCE: ; str2 = strend(str, n) ; INPUTS: ; str - the input string ; n - number of characters to return ; ; OUTPUTS: ; str2 - last n characters of str, or str if strlen(str) >= n ; ; MODIFICATION HISTORY: ; 2007 11 14 Leslie Young SwRI ;- function strend, str, n len = strlen(str) if len le n then return, str return, strmid(str, len-n, len) end