diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2007-09-09 13:23:34 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-09-09 13:23:34 +0000 |
commit | d3de3ee2bd9edc602eed3862b54ab79bf4108b20 (patch) | |
tree | 760ed34d5f590df9a34f15fc3587898e7b76709c /libavutil/mem.h | |
parent | 081c9d1d7ba4360ed9ab19802be2969843d2c5e3 (diff) | |
download | ffmpeg-d3de3ee2bd9edc602eed3862b54ab79bf4108b20.tar.gz |
Document libavutil/mem.h:av_strdup.
patch by Stefano Sabatini, stefano.sabatini-lala poste it
Originally committed as revision 10456 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r-- | libavutil/mem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index 4ebdad8f57..81b87248bb 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -54,6 +54,13 @@ void *av_realloc(void *ptr, unsigned int size); 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); /** |