[vorbis] Getting started with vorbisfile_example.c (MS VC 6)

Michael Smith msmith at labyrinth.net.au
Fri Jun 28 01:42:29 PDT 2002



>Actually, there's no reason not to have the example just use "rb".
>ANSI stdio will always take the 'b' happily, it just won't do anything on
>UNIX.

The examples don't use fopen(), since they only use stdin and stdout.
They go to some length to set the file mode correctly on stdin and stdout
(which is much less simple and portable than the fix for fopen). They
work correctly on (at least) unix, win32, and macos (pre-OSX as well, I
think)

Of course, if the beefing up includes opening files specified on the 
command line, then this would be helpful.

Michael

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list