gnome_vfs_read returns EOF when requesting zero bytes



Hi,
I noticed that the call gnome_vfs_read(handle, buffer, 0, &nchars)
returns GNOME_VFS_ERROR_EOF. Is this on purpose or just a boundary case
that has gone unnoticed? The documentation didn't clear things up much
either. Rather it implies that the above call should return
GNOME_VFS_OK.

Thanks,
Johan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]