summaryrefslogtreecommitdiffstats
path: root/uint16.h
blob: a254d9d56315f1524d78606c810310528e978928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _UINT16_H
#define _UINT16_H

#include "uint.h"
/*
 * pack and unpack an unsigned int in or out of a two bytes char
 */
void u16_pack(char s[2],u16 u);
void u16_pack_big(char s[2],u16 u);
void u16_unpack(const char s[2],u16 *u);
void u16_unpack_big(const char s[2],u16 *u);

#endif