strnset, strset
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The strnset function sets, at most, the first <count> characters
of <string> to the character <c>. It then returns a pointer to the
altered string. If <count> is greater than the length of <string>,
the length of <string> is used in place of <count>.
The strset function sets all characters of <string> to <c>, except
the terminating null character (\0).
The _f... forms of these functions are model-independent (large-
model) forms that use far pointer forms of the string arguments
and return values. These model-independent functions can be called
from any point in the program.
Return Value
These functions return a pointer to the altered string. There is
no error return.
-♦-