Str_trim PROC

   Removes all occurrences of a given trailing character from the end of a null-terminated string.

Call args:  ADDR string,
            character

Return arg: None

Example:

.data
string BYTE "hello#world####",0
char   BYTE '#'

.code
       INVOKE Str_trim, ADDR string, char

       ;string now contains: "hello#world",0
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)