Move characters from the end to the beginning of a string
JustRight( <[@]cString>, [<cChar>|<nChar>] ) -> cJustifiedString
<cString> [@] Designates the string that is processed. <cCharacter|nCharacter> Designates the character that is moved from the end of the <cString> to the beginning. The default value is a space, CHR(32).
The processed <cString> is returned.
JustRight() moves the characters specified in <cCharacter| nCharacter> from the end of a character string to the beginning. Then the remaining text in the character string is right justified, without affecting the length.
. If the <cCharacter|nCharacter> parameter is not specified, spaces are automatically moved. . The return value for this function can be suppressed by implementing CSETREF() to save room in working memory.
. Move the blanks ? JustRight("123 ") // " 123" . Move the "." character ? JustRight("123..", ".") // "..123 "
JustRight() is compatible with CT3’s JustRight().
Source is justify.c, library is libct.
JustLeft(), CSetRef(), Introduction