Allow level-array to have different size from line length

This may not be apparent at first, but it allows you to only extract
as many levels of a line as you need, e.g. only the first 10. Truncation
is indicated by the return value being larger than levlen.

Signed-off-by: Laslo Hunhold <dev@frign.de>
3 files changed