summaryrefslogtreecommitdiffstats
path: root/cdbmake_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdbmake_pack.c')
-rw-r--r--cdbmake_pack.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cdbmake_pack.c b/cdbmake_pack.c
new file mode 100644
index 0000000..04b5f5b
--- /dev/null
+++ b/cdbmake_pack.c
@@ -0,0 +1,11 @@
1#include "cdbmake.h"
2
3void cdbmake_pack(buf,num)
4unsigned char *buf;
5uint32 num;
6{
7 *buf++ = num; num >>= 8;
8 *buf++ = num; num >>= 8;
9 *buf++ = num; num >>= 8;
10 *buf = num;
11}