Instead of making system or portable file readers responsible for
[pspp-builds.git] / src / str.c
index 9d2d0b3c4023226cb08b57dcb9f4b222057b8347..265c2a230d53e0798cea632e1507d23f25e4cad5 100644 (file)
--- a/src/str.c
+++ b/src/str.c
@@ -326,6 +326,13 @@ ds_c_str (const struct string *st)
   return st->string;
 }
 
+/* Returns the string data inside ST. */
+char *
+ds_data (const struct string *st)
+{
+  return st->string;
+}
+
 /* Returns a pointer to the null terminator ST.
    This might not be an actual null character unless ds_c_str() has
    been called since the last modification to ST. */