hexdecoct: slightly extend the unbase64mem() API and related
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Oct 2017 09:06:19 +0000 (11:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:13:44 +0000 (11:13 +0100)
commitae6e414a611cdb7c4dd6e0b810a9efac3e9d2318
treea70da831434fa14daf1f18058d13be7c1b3d82a1
parent6bbfdc672bd69cbd712d6d532db76dbb3c227784
hexdecoct: slightly extend the unbase64mem() API and related

If the string length is specified as (size_t) -1, let's use that as
indicator for determining the length on our own. This makes it
slightlier shorter to invoke these APIs for a very common case.

Also, do some minor other coding style updates, and add assert()s here
and there.
src/basic/hexdecoct.c