[FFmpeg-devel] [PATCH] Use strcasecmp rather than reinventing the loop

Michael Niedermayer michaelni
Fri May 2 20:23:19 CEST 2008

On Fri, May 02, 2008 at 07:50:34PM +0200, Diego 'Flameeyes' Petten? wrote:
> M?ns Rullg?rd <mans at mansr.com> writes:
> > Not that I care, but strcasecmp() is not in C99.  It's a POSIX extension.
> > Prepare for complaints if this is applied.
> I've checked first if libavformat was using strcasecmp before, as I
> suspected this to come up: rtsp.c, mp3.c and utils.c already use it. As
> do libavdevice, vhook (I know it's deprecated) and ffserver.

Also dont forget considering locale dependancies with what is upper and
lower case ...

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080502/ec762eab/attachment.pgp>

More information about the ffmpeg-devel mailing list