Mercurial > libavutil.hg
diff mem.h @ 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 | c1d6b0378055 |
children | 0fc1d6548be4 |
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); /**