#ifndef LIBMC_UTIL_H #define LIBMC_UTIL_H #include #ifdef __cplusplus extern "C" { #endif /* } */ /* build a new C string by concatenate strings in ss * @ss: C strings, the last element is NULL * @note callers should call free() to free the returned C string */ char * alloc_build_string(const char *ss[]); const char *json_gets(json_object *j, const char *key); char *json_gets_dup(json_object *j, const char *key); #ifdef __cplusplus } #endif #endif