source: rtems/cpukit/libdl/rtl-string.h @ c130387

5
Last change on this file since c130387 was ae5fe7e6, checked in by Chris Johns <chrisj@…>, on 10/27/14 at 01:09:41

cpukit: Add libdl with the Runtime Loader (RTL) code.

This is a merge of the RTL project.

  • Property mode set to 100644
File size: 739 bytes
Line 
1/*
2 *  COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.org/license/LICENSE.
7 */
8/**
9 * @file
10 *
11 * @ingroup rtems_rtl
12 *
13 * @brief RTEMS Run-Time Linker String managment.
14 */
15
16#if !defined (_RTEMS_RTL_STRING_H_)
17#define _RTEMS_RTL_STRING_H_
18
19#include "rtl-indirect-ptr.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif /* __cplusplus */
24
25/**
26 * A string duplicate that uses the RTL allocator.
27 *
28 * @param s1 The string to duplicate.
29 * @return char* The copy of the string. NULL if there is no memory.
30 */
31char* rtems_rtl_strdup (const char *s1);
32
33#ifdef __cplusplus
34}
35#endif /* __cplusplus */
36
37#endif
Note: See TracBrowser for help on using the repository browser.