strset

Fills a string with a specified character.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *strset (
     char   *s1,
     int     fill);
  

Parameters

s1

(IN) Points to the string to fill.

fill

(IN) Specifies the character to be used in filling the string.

Return Values

Returns the address of the original string s1.

Remarks

The strset function fills the string s1 with the character fill. The null-terminating character in the original string remains unchanged.

See Also

strnset