Definition at line 40 of file lwout_wkb.c.
41{
42 char *hex;
43 uint32_t i;
44 if ( ! bytes || ! size )
45 {
46 lwerror(
"hexbutes_from_bytes: invalid input");
47 return NULL;
48 }
50 hex[2*size] = '\0';
51 for( i = 0; i < size; i++ )
52 {
53
54 hex[2*i] =
hexchr[bytes[i] >> 4];
55
56 hex[2*i+1] =
hexchr[bytes[i] & 0x0F];
57 }
58 return hex;
59}
void * lwalloc(size_t size)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
References hexchr, lwalloc(), and lwerror().
Referenced by cu_twkb(), cu_twkb_idlist(), cu_twkb_in(), cu_wkb_in(), do_test_s32_varint(), do_test_s64_varint(), do_test_u32_varint(), and do_test_u64_varint().