Function

GLibstrnfill

Declaration [src]

gchar*
g_strnfill (
  gsize length,
  gchar fill_char
)

Description [src]

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

Parameters

length gsize
 

The length of the new string.

fill_char gchar
 

The byte to fill the string with.

Return value

Returns: gchar*
 

A newly-allocated string filled the fill_char.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.