which returns the number of entries in the list.
+2003-03-14 Theodore Ts'o <tytso@mit.edu>
+
+ * badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
+ which returns the number of entries in the list.
+
2003-03-10 Theodore Ts'o <tytso@mit.edu>
* fileio.c (ext2fs_file_lseek): Fix bug added when adding 64-bit
return ext2fs_u32_list_equal((ext2_u32_list) bb1,
(ext2_u32_list) bb2);
}
+
+int ext2fs_u32_list_count(ext2_u32_list bb)
+{
+ return bb->num;
+}
ext2_badblocks_list *dest);
extern int ext2fs_badblocks_equal(ext2_badblocks_list bb1,
ext2_badblocks_list bb2);
+extern int ext2fs_u32_list_count(ext2_u32_list bb);
/* bb_compat */
extern errcode_t badblocks_list_create(badblocks_list *ret, int size);