-
Notifications
You must be signed in to change notification settings - Fork 2
/
Main code.txt
50 lines (43 loc) · 952 Bytes
/
Main code.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "PduHeader.h"
#include "checksum.h"
#include "GUIDGenerator.h"
#include "Pdu.h"
#include "helper.h"
#include "Base64Encoding.h"
#include "Fragmentation.h"
#include "Defragmentation.h"
int main()
{
printf("To fragment, enter F or f\n");
printf("To defragment, enter D or d\n");
printf("To exit, enter E or e or any other chararcter\n\n");
char choice;
printf("Enter your choice: ");
scanf("%c",&choice);
char enter;
scanf("%c",&enter);
switch(choice)
{
case 'F':
case 'f':
{
ExecuteFragmentation();
break;
}
case 'D':
case 'd':
{
ExecuteDefragmentation();
break;
}
case 'E':
case 'e':
{
break;
}
}
return 0;
}