summaryrefslogtreecommitdiffstats
path: root/uint16.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2010-07-09 12:32:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2010-07-09 12:32:17 +0200
commit6c027b4de25a529908be895e7ff19236f4002a57 (patch)
treef70d3a400bbb9ba8a83e9d4ffcaa4b6e367fc8bb /uint16.h
downloadcrypto-6c027b4de25a529908be895e7ff19236f4002a57.zip
crypto-6c027b4de25a529908be895e7ff19236f4002a57.tar.gz
initial commit, resurrect one of my realy old projects
Diffstat (limited to 'uint16.h')
-rw-r--r--uint16.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/uint16.h b/uint16.h
new file mode 100644
index 0000000..a254d9d
--- /dev/null
+++ b/uint16.h
@@ -0,0 +1,13 @@
+#ifndef _UINT16_H
+#define _UINT16_H
+
+#include "uint.h"
+/*
+ * pack and unpack an unsigned int in or out of a two bytes char
+ */
+void u16_pack(char s[2],u16 u);
+void u16_pack_big(char s[2],u16 u);
+void u16_unpack(const char s[2],u16 *u);
+void u16_unpack_big(const char s[2],u16 *u);
+
+#endif