Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_strfill() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_STRFILL()

 DESCRIPTION

 C_STRFILL() expands a given character string with the specified
 number of spaces.  The string is filled with spaces at the end of
 the string.

 SYNTAX

 C_STRFILL(string, expand)

 PARAMETERS

 string (C) is the character string to expand.

 expand (N) is the number of spaces to expand the string.

 RETURNS

 C_STRFILL() returns the expanded character string.

 EXAMPLES

 s1 = "Fill this string"

 ? s1      --> "Fill this string"    && Example of s1

 ? len(s1) --> 16                    && Length of s1 is 16

 s2 =  c_strfill(s1,10)              && Fill the string with 10 spaces

 ? len(s2) --> 26                    && Length of new string s2 is 26

 ? s2      --> "Fill this string          "    && Example of s2


See Also: C_BTOZ() C_ZTOB() C_ATRIM() C_RTSTR() C_LTSTR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson