关于C语言数据类型的问题:大家看看guint8,gpointer,gint等是什么东西?
想看一个c语言实现的算法,碰到这些guint8,gpointer,gint不知道是什么东西,既不是基本类型,也不是结构体,好像是自定义的数据类型。
r_insert_node(root, strdup("@NUMBER:Seq@, @ESTRING:DateTime:,@@ESTRING:Severity:,@@ESTRING:Comp:,@"), "3com", TRUE, NULL);是下面方法的调用。guint8 *key 好像是字符串类型的,但是程序中又出现 key+1,key+2之类的 ,是在搞不懂.
r_insert_node(RNode *root, guint8 *key, gpointer value, gboolean parser, RNodeGetValueFunc value_func)
{
RNode *node;
gint keylen = strlen(key);
gint nodelen = root->keylen;
gint i = 0;
if (parser && key[0] == '@')
{
guint8 *end;
if (keylen >= 2 && key[1] == '@')
{
/* we found and escape, so check if we already have a child with '@', or add a child like that */
node = r_find_child(root, key[1]);
...