[FFmpeg-devel] [PATCH] lavu: add av_strtok_r()
stefasab at gmail.com
Sat Oct 15 21:01:27 CEST 2011
On date Saturday 2011-10-15 15:45:02 +0200, Michael Niedermayer encoded:
> On Sat, Oct 15, 2011 at 12:50:11PM +0200, Stefano Sabatini wrote:
> > The function strtok_r() is part of the POSIX.1 specification, but is not
> > available on some platforms. We provide an internal implementation, so we
> > do not need to rely on a platform implementation.
> > The code is based on the OpenBSD libc strtok_r() implementation.
> LGTM and great idea
I rewrote the function from scratch, which reads more readable to my
eyes (also I was missing the original copyright notice, which should
not be anymore required).
I also changed the docs, to make the doxy more compliant with the
official POSIX.1 strtok_r() definition, which is explicitely referenced.
I'll push it in a day or so if I read no more comments.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7695 bytes
Desc: not available
More information about the ffmpeg-devel