Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>insert fillers between characters in a passed string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Insert fillers between characters in a passed string
------------------------------------------------------------------------------

 Syntax

        GT_StrExpand(<cStr>, [<nNum>], [<cChar>]) --> cRet

 Arguments:

      <cStr1>  - A character string to insert chars into
      <nNum>   - The number of fill characters to insert (default 1)
      <cChar>  - The fill chararacter (default space)

 Returns:

      cRet     - The input string with fill characters inserted between
                 every character in the original.

 Description:

      Inserts fill characters into a string.

      NOTE:
         invalid parameters will return ""

 Examples:


      ? gt_strexpand("abc")                    // prints "a b c"
      ? gt_strexpand("abc", 2)                 // prints "a  b  c"
      ? gt_strexpand("abc", 2, '.')            // prints "a..b..c"


 Source: STREXPAN.C

 Author:  Andy M Leighton

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