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

Graham Mitchell graham at grahammitchell.net
Thu Jun 27 22:04:35 PDT 2002



>> The code has another problem: the backslashes need to be doubled up.
>>
>>   myfile = fopen("C:\\downloads\\music.ogg","rb");
>
> Or better yet, replaced by forward slashes. Win32 will accept either,
> and Unix won't accept backslashes, so the correct choice for portable
> code is to use forward slashes for directory separators.

Yeah, but using forward slashes for portability won't help much when your 
path begins with "C:".


-- 
Graham Mitchell - computer science teacher, Leander High School
         A = B
       A*A = B*A
        AA = AB
     AA-BB = AB-BB
(A+B)(A-B) = B(A-B)
       A+B = B
       B+B = B     (by A=B)
        2B = B
         2 = 1

--- >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