/* 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/siovec.h>
size_t
siov_seek_bytein(const struct iovec *v, unsigned int n, size_t offset, const char *s, size_t l)
{
struct iovec vv[n];
for (unsigned int i = 0; i < n; ++i)
vv[i] = v[i];
siov_seek(vv, n, offset);
return siov_bytein(vv, n, s, l);
}