#include #include #include #include void test_text2hex() { g_return_if_fail (buf!=NULL); const gchar *text = "00 0102 03 04 05 06 AA BB CC FE"; guint len; guint8 *buf = text2hex (text,len); for (int i=0; i