comparison target-utils/libtiffs/cmd_find.c @ 224:2900fe603f8a

beginning of MPFFS->TIFFS naming convention change
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Jan 2014 07:59:00 +0000
parents target-utils/libmpffs/cmd_find.c@3daa8ebbe74d
children
comparison
equal deleted inserted replaced
223:0848c7f419fd 224:2900fe603f8a
1 #include <sys/types.h>
2 #include "types.h"
3
4 void
5 cmd_find(argbulk)
6 char *argbulk;
7 {
8 char *argv[2];
9 int stat, cont;
10 u8 *start;
11 size_t size;
12
13 if (parse_args(argbulk, 1, 1, argv, 0) < 0)
14 return;
15 stat = mpffs_find_file(argv[0], &start, &size, &cont);
16 if (stat < 0)
17 return;
18 printf("chunk @%08X size %x\n", (u32)start, (u32)size);
19 while (cont) {
20 stat = mpffs_get_segment(cont, &start, &size, &cont);
21 if (stat < 0)
22 return;
23 printf("chunk @%08X size %x\n", (u32)start, (u32)size);
24 }
25 }