[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson