blob: 78aca79fa119d55e0da1011066130fe6aab54b24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <stdint.h>
#include <string.h>
#include <skalibs/uint32.h>
void uint32_unpack (char const *s, uint32_t *u)
{
uint32_t x ;
memcpy(&x, s, sizeof(uint32_t)) ;
*u = uint32_little(x) ;
}
|