forked from Imagelibrary/rtems
cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
This commit is contained in:
37
cpukit/libdl/rtl-string.h
Normal file
37
cpukit/libdl/rtl-string.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 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_
|
||||
|
||||
#include "rtl-indirect-ptr.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
|
||||
Reference in New Issue
Block a user