blob: 2e4bdc15154b1f6d1f9cfe67e1e3887319263af0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "../lib/lib.h"
/*
* implements task 5 of set 1 of matanso challange
*/
int main()
{
char *stanze = "Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal";
char *result = malloc(strlen(stanze));
char *printable = malloc(strlen(stanze)*2+1);
xor_string(stanze, "ICE", result, 3, strlen(stanze));
hex_binary_to_string(result, printable, strlen(stanze));
printf("%s\n", printable);
}
|