Logo Search packages:      
Sourcecode: ucspi-tcp version File versions  Download package

tai_pack.c

#include "tai.h"

void tai_pack(char *s,struct tai *t)
{
  uint64 x;

  x = t->x;
  s[7] = x & 255; x >>= 8;
  s[6] = x & 255; x >>= 8;
  s[5] = x & 255; x >>= 8;
  s[4] = x & 255; x >>= 8;
  s[3] = x & 255; x >>= 8;
  s[2] = x & 255; x >>= 8;
  s[1] = x & 255; x >>= 8;
  s[0] = x;
}

Generated by  Doxygen 1.6.0   Back to index