The byleng() function returns the number of significant characters in a string, not counting trailing blanks.
This sample program is in the byleng.ec file in the demo directory.