返回广义表的长度,即元素个数 int GListLength(GList L) { int len = 0; if(!L) return 0; if(L->tag == ATOM) return 1; while(L)
http://user.qzone.qq.com/825224710/main返回广义表的长度,即元素个数 int GListLength(GList L) { int len = 0; if(!L) return 0; if(L->tag == ATOM) return 1; while(L) { L = L->a.ptr.tp; len++; }
http://blog.sina.com.cn/s/blog_14d8952290102vo6f.html
L = L->a.ptr.tp;len++;}