Forwarding GScanner's buffer position
- From: "Amit Bansal" <amitdk29 rediffmail com>
- To: gtk-devel-list gnome org
- Subject: Forwarding GScanner's buffer position
- Date: 7 Apr 2004 04:17:58 -0000
Hi,
I forward the file-descriptor associated with a GScanner. Now, I want
to forward the GScanner's buffer position to the current position of
the file-descriptor. How do I do it?
The documentation for GScanner at
http://developer.gnome.org/doc/API/2.0/glib/glib-Lexical-Scanner.html#g-scanner-sync-file-offset
says that g_scanner_sync_file_offset:
Rewinds the filedescriptor to the current buffer position and blows
the file read ahead buffer. This is useful for third party uses of the
scanners filedescriptor, which hooks onto the current scanning
position.
Regards,
AB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]