Welcome to little lamb

Code » limb » release » tree

[release] / src / liblimb / hex.h / hex_fmt.c

/* This file is part of limb                           https://lila.oss/limb
 * Copyright (C) 2023 Olivier Brunel                          jjk@jjacky.com */
/* SPDX-License-Identifier: GPL-2.0-only */
#include <limb/hex.h>

ssize_t
hex_fmt(char *dst, size_t dlen, const char *sce, size_t slen, int options)
{
    size_t w = 0, r = 0;
    if (!hexall_fmt(dst, dlen, sce, slen, options, &w, &r))
        return -1;
    return w;
}