blob: 7dd2259d8b5ec4e2462bbb361e06833b687492a3 [file] [log] [blame]
Mingyang Sunc4b5d8d2019-07-16 17:57:52 +08001/*
2 * Copyright (c) 2019, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_LIBSPRT_C_H__
9#define __TFM_LIBSPRT_C_H__
10
11#include <stddef.h>
12
13/**
14 * \brief This function moves 'n' bytes from 'src' to 'dest'.
15 *
16 * \param[out] dest Destination address
17 * \param[in] src Source address
18 * \param[in] n Number of bytes to be moved
19 *
20 * \retval dest Destination address
21 * \note Memory overlap has been taken into consideration
22 * and processed properly in the function.
23 */
24void *tfm_sprt_c_memmove(void *dest, const void *src, size_t n);
25
26/**
27 * \brief This function copies 'n' bytes from 'src' to 'dest'.
28 *
29 * \param[out] dest Destination address
30 * \param[in] src Source address
31 * \param[in] n Number of bytes to be copied
32 *
33 * \retval dest Destination address
34 * \note It has the same effect as tfm_sprt_c_memmove().
35 */
36void *tfm_sprt_c_memcpy(void *dest, const void *src, size_t n);
37
38#endif /* __TFM_LIBSPRT_C_H__ */