summaryrefslogtreecommitdiffstats
path: root/lib/string/strncpy.h
blob: fc6fcc963d3e4d672ed8b2d8a26ff8f6b49a8e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * SPDX-FileCopyrightText: 2023, Alejandro Colomar <alx@kernel.org>
 * SPDX-License-Identifier: BSD-3-Clause
 */


#ifndef SHADOW_INCLUDE_LIB_STRNCPY_H_
#define SHADOW_INCLUDE_LIB_STRNCPY_H_


#include <config.h>

#include <string.h>

#include "sizeof.h"


#define STRNCPY(dst, src)  strncpy(dst, src, NITEMS(dst))


#endif  // include guard