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>setchrs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SETCHRS

  .  Summary

  setchrs(str <buf>, int <pos>, int <c>, int <count>);

  .  Description

  The setchrs function is used to set a range of characters in a
  string to the same value. <buf> is the string in which characters
  will be set, starting at an offset indicated by <pos> (note that the
  first character in a SALT string has an offset of 0, the second, 1,
  and so on). <count> characters will be set to the value of <c>.

  .  Return Value

  None.

  .  Example

  str s[100];
  // zero out an entire string
  setchrs(s, 0, 0, strmaxlen(s));
  // set the first ten characters to 'A'
  setchrs(s, 0, 'A', 10);

See Also: setchr subchrs ASCII table

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