summaryrefslogtreecommitdiff
path: root/cdb_unpack.c
blob: c88220216dc8ca820b51ab1d04c10435d986eaa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "cdb.h"

uint32 cdb_unpack(buf)
unsigned char *buf;
{
  uint32 num;
  num = buf[3]; num <<= 8;
  num += buf[2]; num <<= 8;
  num += buf[1]; num <<= 8;
  num += buf[0];
  return num;
}