taia_pack.c

来自「daemontools-0.76.tar.gz是在linux环境下自动监控进程的」· C语言 代码 · 共 23 行

C
23
字号
/* Public domain. */#include "taia.h"void taia_pack(char *s,const struct taia *t){  unsigned long x;  tai_pack(s,&t->sec);  s += 8;  x = t->atto;  s[7] = x & 255; x >>= 8;  s[6] = x & 255; x >>= 8;  s[5] = x & 255; x >>= 8;  s[4] = x;  x = t->nano;  s[3] = x & 255; x >>= 8;  s[2] = x & 255; x >>= 8;  s[1] = x & 255; x >>= 8;  s[0] = x;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?