STRSET(DOS) XENIX System V STRSET(DOS)
Name
strset - Sets all characters in a string to one charater.
Syntax
#include <string.h>
char *strset (string, c);
char *string;
char c;
Description
The strset function sets all characters of the given string
except the terminating null character ('\0') to c.
Return Value
strset returns a pointer to the altered string. There is no
error return.
See Also
string(S)
Example
#include <string.h>
char string[100], *result; . . . /* Set a
string to be all blanks. */
result = strset (string,' ');
Notes
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)