_BCDTRIM - "trim" trailing blanks from a BCD
string.
(GCOS-8 Only)
Usage:
newlength = _bcdtrim(bcdptr,oldlength);
Where:
- void *bcdptr;
- indicates the BCD string to be trimmed. This must be a
BCD pointer as created by "_bcdptr".
- int oldlength;
- is the current number of BCD characters in the string.
- int newlength;
- is the number of BCD characters in the string, omitting
any trailing blanks.
Description:
"_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.
See Also:
expl nsc lib _strtrim
expl nsc lib _bcdptr
Copyright © 1996, Thinkage Ltd.