Added SILC errno API. Added SilcResult, generic error code and
[silc.git] / lib / silcutil / silcmemory.h
index a016a20432f75715d91009f5e0fe0d81cc7a523d..7dc60062ef1b440c5e4af4f14048b5fe46504546 100644 (file)
@@ -118,6 +118,20 @@ void silc_free(void *ptr);
  ***/
 void *silc_memdup(const void *ptr, size_t size);
 
+/****f* silcutil/SilcMemoryAPI/silc_strdup
+ *
+ * SYNOPSIS
+ *
+ *    char *silc_strdup(const char *str);
+ *
+ * DESCRIPTION
+ *
+ *    Duplicates the string indicated by `str' and returns the duplicated
+ *    string.  Returns NULL on error.
+ *
+ ***/
+char *silc_strdup(const char *str);
+
 #else
 #ifndef SILC_DIST_TOOLKIT
 #error "The stack trace is not supported in this distribution"