11 #define STR_JSON_INITIALIZER { .len = 0, .str=NULL, .alloc_size=0 } 24 extern const char fmt_error[];
27 extern const char fmt_det_point[];
30 extern const char fmt_det_point_pose[];
void str_json_clear(t_str_json *str_json)
Clear a string.
Definition: str_json.c:48
size_t str_json_printf(t_str_json *str_json_dest, const char *format,...)
Composes a string with the same text that would be printed if format was used on printf,.
Definition: str_json.c:74
size_t str_json_concat(t_str_json *str_json_dest, const char *source_c_str)
Copy the content of source_c_str to str_json_dest.
Definition: str_json.c:56
int str_json_destroy(t_str_json *str_json)
Free a string.
Definition: str_json.c:38
int str_json_create(t_str_json *str_json, size_t size_bytes)
Init a string.
Definition: str_json.c:24
Definition: str_json.h:17