Files
libgphoto2/camlibs/sonydscf1/getuint.c
bvl de028d3def bvl: Support for the Sony DSC-F1, modified library from gphoto1
only tested and compiled on OS/2


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@792 67ed7778-7388-44ab-90cf-0a291f65f57c
2000-07-29 09:25:17 +00:00

22 lines
318 B
C

#include "config.h"
#include <sys/types.h>
u_short
get_u_short(buf)
u_char *buf;
{
return ((u_short)buf[0] << 8) | buf[1];
}
u_int
get_u_int(buf)
u_char *buf;
{
u_int t;
t = (((u_int)buf[0] << 8) | buf[1]) << 16;;
t |= ((u_int)buf[2] << 8) | buf[3];;
return t;
}