[FFmpeg-devel] [PATCH] Doxygenate libavutil/mem.h

Rich Felker dalias
Fri Sep 21 14:18:45 CEST 2007


On Fri, Sep 21, 2007 at 11:33:14AM +0200, Diego Biurrun wrote:
> > + * Allocates or reallocates a block of memory.
> > + * Same semantics as glibc realloc: if \p ptr is NULL and \p size > 0,
> > + * identical to malloc(size). If \p size is zero, it is identical to
> >   * free(ptr) and NULL is returned.

It would be better to cite a well-known standard, ANSI/ISO C, rather
than glibc.... Realloc semantics are not glibc-specific.

> What is supposed to be "identical to malloc(size)"?

The meaning was clear to me: the function call.

Rich




More information about the ffmpeg-devel mailing list