MCPcopy Create free account
hub / github.com/eggert/tz / convert

Function convert

zic.c:2559–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2557 free(dp);
2558 return true;
2559}
2560
2561static void
2562convert(uint_fast32_t val, char *buf)
2563{
2564 register int i;
2565 register int shift;
2566 unsigned char *const b = (unsigned char *) buf;
2567
2568 for (i = 0, shift = 24; i < 4; ++i, shift -= 8)
2569 b[i] = (val >> shift) & 0xff;
2570}
2571

Callers 2

puttzcodeFunction · 0.85
writezoneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected