blob: a19b0214b62e56f63e80bda2da3016cebb428cde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <stdio.h>
#include "utils.h"
int parseArgs(int argc, char **argv, struct progArgs *args) {
//TODO : implement that
args->src="/dev/sdb";
args->dst="./test.img";
args->ddOpts="";
args->beginSector=0;
args->endSector=21474836480ULL; //10 Tio
return 0;
}
void usage(char *progname) {
printf(
"Usage %s <src> <dst> [<beginSector> <endSector> [ddOpts]]\n\
<src>\t\t\n\
<dst>\t\t\n\
<beginSector>\t\n\
<endSector>\t\n\
<ddOpts>\t\n\
", progname);
}
|