aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-11 11:05:37 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-11 11:05:37 +0200
commitb9a9f54c452aeb9083398a956bd590c37661f489 (patch)
treea382bd87f1ce4598754bfa8240014e72dabdc961 /libssh
parentf57d2c327726b93741e986f7dc60f81007330dc9 (diff)
downloadlibssh-b9a9f54c452aeb9083398a956bd590c37661f489.tar.gz
libssh-b9a9f54c452aeb9083398a956bd590c37661f489.tar.xz
libssh-b9a9f54c452aeb9083398a956bd590c37661f489.zip
string: Added a function to delete a char basesd stirng object.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/string.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/string.c b/libssh/string.c
index 0a036ad..394179f 100644
--- a/libssh/string.c
+++ b/libssh/string.c
@@ -143,6 +143,15 @@ char *ssh_string_to_char(struct ssh_string_struct *s) {
}
/**
+ * @brief Deallocate a char string object.
+ *
+ * @param[in] s The string to delete.
+ */
+void ssh_string_free_char(char *s) {
+ SAFE_FREE(s);
+}
+
+/**
* @brief Copy a string, return a newly allocated string. The caller has to
* free the string.
*