[vorbis] Seekable test

Monty xiphmont at xiph.org
Tue Jan 9 14:15:47 PST 2001



I know the message is old but...

On Thu, Dec 28, 2000 at 04:23:17PM +0100, Olaf van der Spek wrote:
> Hi,
> 
> I'm trying to get the callbacks to work.
> In my docs, I read this:
> If successful, fseek returns 0. Otherwise, it returns a nonzero value. On
> devices incapable of seeking, the return value is undefined.

I believe ANSI specifies that -1 is returned for seek failure and
non-seekable devices.  Stevens also uses this as a portable test of a
seekable device, and that's as close to god-like authority as we'll
get.

Monty

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