Str.strnfill

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

class Str
static
string
strnfill

Parameters

length gsize

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