Welcome to little lamb

Code » limb » master » tree

[master] / src / liblimb / copa.h / copa_init.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/copa.h>

void
copa_init(const char *data, size_t dlen, struct copa *ctx)
{
    ctx->data = data;
    ctx->dlen = dlen;
    ctx->noff = ctx->nlen = ctx->voff = ctx->vlen = 0;
}