projects
/
ossec-hids.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2645ac1282cd411cfa2823adcc6896e2350fdd04
[ossec-hids.git]
/
src
/
analysisd
/
cdb
/
uint32_pack.c
1
/* adopted from libowfat 0.9 (GPL) */
2
3
#define NO_UINT32_MACROS
4
#include "uint32.h"
5
6
7
void uint32_pack(char *out, uint32 in)
8
{
9
*out = in & 0xff;
10
in >>= 8;
11
*++out = in & 0xff;
12
in >>= 8;
13
*++out = in & 0xff;
14
in >>= 8;
15
*++out = in & 0xff;
16
}