chiark / gitweb /
hexdecoct: slightly extend the unbase64mem() API and related
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Oct 2017 09:06:19 +0000 (11:06 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 27 Oct 2017 09:06:19 +0000 (11:06 +0200)
commitfcb1a7501411be060c47d18264809d249d3db27d
treea2463e4deed5bbfa3a407ef101b1209fa24439d0
parent0dcb6bdef04e72f018155d82db49cf4244c6dd33
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