String#

typedef struct mlx_string_ *mlx_string#

A MLX string object.

mlx_string mlx_string_new(const char *str)#

Returns a new string, copying contents from str, which must end with \0.

const char *mlx_string_data(mlx_string str)#

Returns a pointer to the string contents.

The pointer is valid for the life duration of the string.