FreeCalypso > hg > freecalypso-sw
view target-utils/libtiffs/cmd_find.c @ 777:08f148c63220
gsm-fw/include/condat-features.h: added PHONEBOOK_EXTENSION and SMS_PDU_SUPPORT
author | Michael Spacefalcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 07 Mar 2015 22:31:27 +0000 |
parents | 2900fe603f8a |
children |
line wrap: on
line source
#include <sys/types.h> #include "types.h" void cmd_find(argbulk) char *argbulk; { char *argv[2]; int stat, cont; u8 *start; size_t size; if (parse_args(argbulk, 1, 1, argv, 0) < 0) return; stat = mpffs_find_file(argv[0], &start, &size, &cont); if (stat < 0) return; printf("chunk @%08X size %x\n", (u32)start, (u32)size); while (cont) { stat = mpffs_get_segment(cont, &start, &size, &cont); if (stat < 0) return; printf("chunk @%08X size %x\n", (u32)start, (u32)size); } }