Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>copychrs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  COPYCHRS

  .  Summary

  copychrs(str <source>, int <target>, int <pos>, int <count>);

  .  Description

  The copychrs function copies a number of characters from one string
  into another, Characters from the string <source> are copied into
  the string <target> at the position <pos> (note that SALT string
  offsets start at 0, not 1 as in some languages). until <count> char-
  acters are copied. Only as many characters as will fit in <target>
  are copied.

  This function is very similar to substr, except that it is not
  string oriented, and does not stop copying characters when a 0 value
  is encountered.

  The substr function copies a portion of one string to another. Char-
  acters from position <pos> in string <source> are copied into
  string <target> (note that SALT string offsets start at 0, not 1 as
  in some languages). Characters are copied until a 0 (NULL) value is
  encountered (normally at the end of every string), or <max> char-
  acters are copied. A 0 (NULL) is always copied at the end of the
  target string. The 0 does not count as part of the <max>. Only as
  many characters as will fit in <target> are copied.

  .  Return Value

  None.

See Also: copystr subchrs substr

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