yelo_3 wrote:
didn't want to make hal depend on glib but it seems that it does this anyway so I will use this or g_strdup_printf()instead of using sprintf you should use #include <glib.h>char* path = g_strconcat("/sys/class/net/", iface, "/device/rf_kill", NULL);[...] g_free(path);