diff options
Diffstat (limited to 'C/HF/chap7/encrypt.c')
| -rw-r--r-- | C/HF/chap7/encrypt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/C/HF/chap7/encrypt.c b/C/HF/chap7/encrypt.c new file mode 100644 index 0000000..1b5ce25 --- /dev/null +++ b/C/HF/chap7/encrypt.c @@ -0,0 +1,6 @@ +#include "encrypt.h" +typedef void (*encrypt_fn_t)(char *message); + +void encrypt(char *message, encrypt_fn_t encrypt_fn) { + encrypt_fn(message); +} |
