summaryrefslogtreecommitdiff
path: root/C/HF/chap4/cryptic/message.c
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-09-06 09:26:21 +0200
committerCarlos Maiolino <[email protected]>2025-09-06 09:26:21 +0200
commit973e27b243ea7f12b6743894465c67a4a6a87eb2 (patch)
tree006a2d9fc8f86b4914499302325fbcaa3941e17c /C/HF/chap4/cryptic/message.c
parent736967952470e740781c95cf5afb7e705ec59030 (diff)
Move some other code here
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'C/HF/chap4/cryptic/message.c')
-rw-r--r--C/HF/chap4/cryptic/message.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/C/HF/chap4/cryptic/message.c b/C/HF/chap4/cryptic/message.c
new file mode 100644
index 0000000..345774c
--- /dev/null
+++ b/C/HF/chap4/cryptic/message.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include "encrypt.h"
+
+int main(void)
+{
+ char msg[80];
+ while (fgets(msg, 80, stdin)) {
+ encrypt(msg);
+ printf("%s\n", msg);
+ }
+
+ return 0;
+}