summaryrefslogtreecommitdiff
path: root/inc/pack.h
blob: 581bcf9d93895b5d6a49b14a9afef0de58cec1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef PACK_H
#define PACK_H

#include <stdio.h>

/* reads a big endian int into an int */
int reverseint(const unsigned char in[4]);

/* reads a teeworlds packed int from given buffer */
/* the given pointer is incremented */
int readint(unsigned char **cp);

#endif // PACK_H