Sets the characters in a string.
char * _strnset (char * string, int c, size_t max);
char * strnset (char * string, int c, size_t max);
Required Header |
<string.h> |
Return Value
The string is returned.
Parameters
string
A string
c
The character to set
max
The maximum number of characters to set
Remarks
The _strnset function copies c to all the characters in str up until max characters have been processed or the null-terminator character is found.