mirror of /home/gitosis/repositories/libowfat.git
Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat
https://www.fefe.de/libowfat/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
440 B
20 lines
440 B
#include "taia.h" |
|
|
|
void taia_unpack(const char* s,struct taia* t) |
|
{ |
|
unsigned long x; |
|
|
|
tai_unpack(s,&t->sec); |
|
s += 8; |
|
|
|
x = (unsigned char) s[4]; |
|
x <<= 8; x += (unsigned char) s[5]; |
|
x <<= 8; x += (unsigned char) s[6]; |
|
x <<= 8; x += (unsigned char) s[7]; |
|
t->atto = x; |
|
x = (unsigned char) s[0]; |
|
x <<= 8; x += (unsigned char) s[1]; |
|
x <<= 8; x += (unsigned char) s[2]; |
|
x <<= 8; x += (unsigned char) s[3]; |
|
t->nano = x; |
|
}
|
|
|