Comment changes.
[silc.git] / lib / silcutil / silcmemory.h
index a016a20432f75715d91009f5e0fe0d81cc7a523d..ddcf8bc15b7f858202fcc0630b10a90af1c3ebd7 100644 (file)
@@ -44,7 +44,7 @@
  *
  *    Allocates memory of `size' bytes and returns pointer to the allocated
  *    memory area.  Free the memory by calling silc_free.  Returns NULL on
- *    error.
+ *    error and sets silc_errno.
  *
  ***/
 void *silc_malloc(size_t size);
@@ -60,7 +60,7 @@ void *silc_malloc(size_t size);
  *    Allocates memory of for an array of `items' elements of `size' bytes
  *    and returns pointer to the allocated memory area.  The memory area is
  *    also zeroed.  Free the memory by calling silc_free.  Returns NULL on
- *    error.
+ *    error and sets silc_errno.
  *
  ***/
 void *silc_calloc(size_t items, size_t size);
@@ -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 and sets silc_errno.
+ *
+ ***/
+char *silc_strdup(const char *str);
+
 #else
 #ifndef SILC_DIST_TOOLKIT
 #error "The stack trace is not supported in this distribution"