File: uint16_read.c

package info (click to toggle)
libowfat 0.22-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,148 kB
  • ctags: 976
  • sloc: ansic: 10,424; makefile: 42
file content (6 lines) | stat: -rw-r--r-- 165 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
#define NO_UINT16_MACROS
#include "uint16.h"

uint16 uint16_read(const char *in) {
  return ((unsigned short)((unsigned char) in[1]) << 8) + (unsigned char)in[0];
}