chiark / gitweb /
style: util.[ch]: Introduce hex_encode_alloc name
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Sep 2019 10:55:17 +0000 (11:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Sep 2019 10:55:17 +0000 (11:55 +0100)
commit36a81f9cfda6df8a79169e93a251e8e13b64f09c
treea24b6fd622b936fa41611d7848896f6dd993fb92
parenta8f672eae8db958976e62923a120a062a154ffef
style: util.[ch]: Introduce hex_encode_alloc name

Prompted by review of 7be31e47b2a8
  "util.[ch]: Factor out hex encoding and decoding utilities."
which says
  The interface is a bit odd, but it will fit with the uses
  I have in mind.

Not sure if it's the encode or decode interface which is referred to.
Certainly there should be a non-allocating variant.  I decided to
rename the allocating one.

The two separate buffer arguments to hex_decode are indeed a bit odd
but IMO tolerable.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
util.c
util.h