Welcome to little lamb

Code » limb » release » tree

[release] / src / liblimb / esc.h / esc_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/esc.h>

ssize_t
esc_fmt(char *dst, size_t dlen, const char *sce, size_t slen)
{
    size_t w = 0, r = 0;
    if (escall_fmt(dst, dlen, sce, slen, &w, &r))
        return w;
    else
        return -1;
}