summaryrefslogtreecommitdiff
path: root/C/HF/chap7/encrypt.c
blob: 6c3eccdf02462cd8266547cb0a2048d79286e91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "encrypt.h"

void encrypt(char *message, encrypt_fn_t encrypt_fn) {
	encrypt_fn(message);
}

void encrypt_arr(char *message, encrypt_arr_t fn_arr, int size)
{
	int i;

	for (i = 0; i < size; i++)
		encrypt(message, fn_arr[i]);
}