newlength = _bcdtrim(bcdptr,oldlength);
"_bcdtrim" calculates the number of trailing blanks on a BCD string and returns the length of the string if trailing blanks were omitted. By specifying this new length for the string instead of the old one, you effectively "trim" the trailing blanks in any operations on the string.
expl nsc lib _strtrim
expl nsc lib _bcdptr
Copyright © 1996, Thinkage Ltd.