strnfill

Creates a new string length bytes long filled with fill_char.

string
strnfill
(
size_t length
,)

Parameters

length size_t

the length of the new string

fillChar char

the byte to fill the string with

Return Value

Type: string

a newly-allocated string filled with fill_char