summaryrefslogtreecommitdiff
path: root/rtl-string.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-05-13 18:29:13 +1000
committerChris Johns <chrisj@rtems.org>2012-05-13 18:29:13 +1000
commitfb0c9b27451d420175a76a0eef733792317d225f (patch)
treefa2799063f54b4cd6324bf3f028eee40d45b87dc /rtl-string.h
parentb78c02ab55ae3c0a932901896051617e1a212952 (diff)
Support indirect pointers for strings in the object file.
Add indirect pointers and use it for the file names parts which are part of the object module.
Diffstat (limited to 'rtl-string.h')
-rw-r--r--rtl-string.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/rtl-string.h b/rtl-string.h
index 00d2c9c..5c599e9 100644
--- a/rtl-string.h
+++ b/rtl-string.h
@@ -16,6 +16,8 @@
#if !defined (_RTEMS_RTL_STRING_H_)
#define _RTEMS_RTL_STRING_H_
+#include <rtl-indirect-ptr.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -26,7 +28,15 @@ extern "C" {
* @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);
+char* rtems_rtl_strdup (const char *s1);
+
+/**
+ * Copy a string to an indirect pointer.
+ *
+ * @param dst The indirect pointer handle to copy the string too.
+ * @param str The string to copy.
+ */
+void rtems_rtl_str_copy (rtems_rtl_ptr_t* dst, const char* str);
#ifdef __cplusplus
}