[FFmpeg-devel] [PATCH] Doxygenate libavutil/mem.h
Uoti Urpala
uoti.urpala
Fri Sep 21 19:53:37 CEST 2007
On Fri, 2007-09-21 at 19:06 +0200, Stefano Sabatini wrote:
> On date Friday 2007-09-21 08:18:45 -0400, Rich Felker encoded:
> > 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.
>
> Good point, changed "glibc" to "ANSI/ISO C".
ANSI/ISO C does not guarantee these semantics. A size-0 realloc need not
return NULL.
More information about the ffmpeg-devel
mailing list