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
343 B
20 lines
343 B
#include "taia.h" |
|
|
|
void taia_pack(char *s,const struct taia *t) |
|
{ |
|
uint32 x; |
|
|
|
tai_pack(s,&t->sec); |
|
s += 8; |
|
|
|
x = t->atto; |
|
s[7] = (char)x; x >>= 8; |
|
s[6] = (char)x; x >>= 8; |
|
s[5] = (char)x; x >>= 8; |
|
s[4] = (char)x; |
|
x = t->nano; |
|
s[3] = (char)x; x >>= 8; |
|
s[2] = (char)x; x >>= 8; |
|
s[1] = (char)x; x >>= 8; |
|
s[0] = (char)x; |
|
}
|
|
|