changeset 382:6224c028828a libavutil

Document libavutil/mem.h:av_strdup. patch by Stefano Sabatini, stefano.sabatini-lala poste it
author diego
date Sun, 09 Sep 2007 13:23:34 +0000
parents c0d706066f20
children 1f27211dc3a6
files mem.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mem.h	Thu Aug 30 23:11:24 2007 +0000
+++ b/mem.h	Sun Sep 09 13:23:34 2007 +0000
@@ -54,6 +54,13 @@
 void av_free(void *ptr);
 
 void *av_mallocz(unsigned int size);
+
+/**
+ * Duplicates the string \p s.
+ * @param s String to be duplicated.
+ * @return Pointer to a newly allocated string containing a
+ * copy of \p s or NULL if it cannot allocate it.
+ */
 char *av_strdup(const char *s);
 
 /**