summaryrefslogtreecommitdiff
path: root/textcode.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2002-04-29 21:03:08 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2002-04-29 21:03:08 +0000
commit2969eaa2d7ce6db23fde7a60cf51cc5ad2cf5cca (patch)
tree310da537c73cbb0fd918eecc33844b91269ad303 /textcode.h
parent93639174a3db80e1c2c51e987098a6466b88db1f (diff)
downloadlibowfat-2969eaa2d7ce6db23fde7a60cf51cc5ad2cf5cca.tar.gz
libowfat-2969eaa2d7ce6db23fde7a60cf51cc5ad2cf5cca.zip
add textcode api for uuencode and uudecode, base64 and quoted printable.
Diffstat (limited to 'textcode.h')
-rw-r--r--textcode.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/textcode.h b/textcode.h
new file mode 100644
index 0000000..85ae0d9
--- /dev/null
+++ b/textcode.h
@@ -0,0 +1,14 @@
+#ifndef TEXTCODE_H
+#define TEXTCODE_H
+
+unsigned int fmt_uuencoded(char* dest,const char* src,unsigned int len);
+unsigned int fmt_base64(char* dest,const char* src,unsigned int len);
+unsigned int fmt_quotedprintable(char* dest,const char* src,unsigned int len);
+unsigned int fmt_yenc(char* dest,const char* src,unsigned int len);
+
+unsigned int scan_uuencoded(const char *src,char *dest,unsigned int *destlen);
+unsigned int scan_base64(const char *src,char *dest,unsigned int *destlen);
+unsigned int scan_quotedprintable(const char *src,char *dest,unsigned int *destlen);
+unsigned int scan_yenc(const char *src,char *dest,unsigned int *destlen);
+
+#endif