tobytes.c (148B)
1 #include <serialize.h> 2 3 unsigned char * 4 tobytes(unsigned char *p, unsigned long long v, int n) 5 { 6 for ( ; n--; p++) 7 *p = v, v >>= 8; 8 return p; 9 }
![]() | 9osExperimental kernel using plan9 ideas for embedded device |
git clone git://git.simple-cc.org/9os | |
Log | Files | Refs | README | LICENSE |