String#
-
typedef struct mlx_string_ mlx_string#
A MLX string object.
-
mlx_string mlx_string_new()#
Returns a new empty string.
-
mlx_string mlx_string_new_data(const char *str)#
Returns a new string, copying contents from
str
, which must end with\0
.
-
int mlx_string_set(mlx_string *str, const mlx_string src)#
Set string to src string.
-
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.
-
int mlx_string_free(mlx_string str)#
Free string.
-
struct mlx_string_#
- #include <string.h>
A MLX string object.