diff options
author | Gentoo <installgentoo@endianness.com> | 2021-03-27 10:20:15 +1100 |
---|---|---|
committer | Gentoo <installgentoo@endianness.com> | 2021-03-27 10:20:15 +1100 |
commit | cc068dd1b885c884659e4d36e7d4aa81c52dc89c (patch) | |
tree | 73ebdfe6bade1b58fb0cec014e762d84e38b7a9a /main.h | |
download | base64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.tar.gz base64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.tar.bz2 base64-cc068dd1b885c884659e4d36e7d4aa81c52dc89c.zip |
initial commit
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |