]> mj.ucw.cz Git - libucw.git/blobdiff - lib/clists.h
Indexer:
[libucw.git] / lib / clists.h
index 8b67608c8fb9e15be4dfb6a0bfeae87cb38d3f33..921b7dc571ff4290717b3b09c5a4f449bf174caf 100644 (file)
@@ -121,4 +121,12 @@ static inline void clist_insert_list_after(clist *what, cnode *after)
     }
 }
 
+static inline uns clist_size(clist *l)
+{
+  uns i = 0;
+  CLIST_FOR_EACH(cnode *, n, *l)
+    i++;
+  return i;
+}
+
 #endif