uint64_unpack.c (199B)
1 /* ISC license. */ 2 3 #include <string.h> 4 5 #include <skalibs/uint64.h> 6 7 void uint64_unpack (char const *s, uint64_t *u) 8 { 9 uint64_t x ; 10 memcpy(&x, s, sizeof(uint64_t)) ; 11 *u = uint64_little(x) ; 12 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |