summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 10:20:15 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 10:20:15 +1100
commitcc068dd1b885c884659e4d36e7d4aa81c52dc89c (patch)
tree73ebdfe6bade1b58fb0cec014e762d84e38b7a9a /main.h
downloadbase64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.tar.gz
base64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.tar.bz2
base64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.zip
initial commit
Diffstat (limited to 'main.h')
-rw-r--r--main.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.h b/main.h
new file mode 100644
index 0000000..3a4ddb6
--- /dev/null
+++ b/main.h
@@ -0,0 +1,13 @@
+#ifndef MAIN_H
+#define MAIN_H
+
+#include <stdbool.h>
+//function prototypes
+char *base64Encode(unsigned char *input, int size);
+int base64Decode(unsigned char *string, int size);
+void stdinMode(char *buffer, int wrap, bool decode, char argv[]);
+
+#define DEFAULT_SIZE 4096 //the default size to make the buffer for input
+#define WRAP_CHAR 76 //default wrapping is 76 characters
+
+#endif