Str.strnfill

Creates a new string @length bytes long filled with @fill_char. The returned string should be freed when no longer needed.

struct Str
static
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 the @fill_char

Meta