summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-string.h
blob: 1aa2624fdffc0b753bc8ee7dcd9bfba3f5e91a25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 *  COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */
/**
 * @file
 *
 * @ingroup rtems_rtl
 *
 * @brief RTEMS Run-Time Linker String managment.
 */

#if !defined (_RTEMS_RTL_STRING_H_)
#define _RTEMS_RTL_STRING_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * A string duplicate that uses the RTL allocator.
 *
 * @param s1 The string to duplicate.
 * @return char* The copy of the string. NULL if there is no memory.
 */
char* rtems_rtl_strdup (const char *s1);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif