Parent Directory
|
Revision Log
Initial revision
| 1 | /* unpack 32bit integer |
| 2 | * |
| 3 | * This file is a part of tinycdb package by Michael Tokarev, mjt@corpit.ru. |
| 4 | * Public domain. |
| 5 | */ |
| 6 | |
| 7 | #include "common/setup_before.h" |
| 8 | #include "cdb.h" |
| 9 | #include "common/setup_after.h" |
| 10 | |
| 11 | unsigned |
| 12 | cdb_unpack(const unsigned char buf[4]) |
| 13 | { |
| 14 | unsigned n = buf[3]; |
| 15 | n <<= 8; n |= buf[2]; |
| 16 | n <<= 8; n |= buf[1]; |
| 17 | n <<= 8; n |= buf[0]; |
| 18 | return n; |
| 19 | } |
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |