summaryrefslogtreecommitdiff
path: root/src/utils.c
blob: 7305b22e8f2d8d302d5ae4739df8b7f54247a0a2 (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
25
26
27
#include <stdio.h>
#include <string.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);
}