• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 /**
16  * @defgroup string String
17  * @ingroup linux
18  */
19 
20 #ifndef _LINUX_STRING_H
21 #define _LINUX_STRING_H
22 
23 #include_next "string.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28 
29 /**
30  * @ingroup string
31  * @brief Copy strings.
32  *
33  * @par Description:
34  * This API is used to copy strings securely.
35  *
36  * @attention
37  * None.
38  *
39  * @param  dest   [IN] The pointer to the destination address.
40  * @param  src    [IN] The pointer to the source address.
41  * @param  size   [IN] Size of the dest.
42  *
43  * @retval None.
44  * @par Dependency:
45  * <ul><li>string.h: the header file that contains the API declaration.</li></ul>
46  * @see None.
47  */
48 extern size_t strlcpy(char *dest, const char *src, size_t size);
49 
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53 
54 #endif /* _LINUX_STRING_H */
55