]> cvs.zerfleddert.de Git - rsbs2/blobdiff - filesystem.c
update .gitignore (forgot it after last renaming...)
[rsbs2] / filesystem.c
index d05361d7304c6bae8d5ff8ceac9bf1182245713e..84c592cac3b00e01760e8d8fb7e32601681b67ba 100644 (file)
@@ -137,6 +137,16 @@ void replace_add_file(unsigned char *fw, int len, char *fwname, char *lname)
        exit(1);
 }
 
+void list_files(unsigned char *fw, int len)
+{
+       struct file_entry *fent;
+
+       for (fent = get_next_file(fw, len); fent != NULL; fent = get_next_file(NULL, 0)) {
+               printf("0x%x %8d %s\n", fent->unknown, fent->length, fent->name);
+       }
+
+}
+
 void mkdir_p(char *dir)
 {
        char *copy, *parent;
Impressum, Datenschutz