I've never seen any such thing, but I've done similar things a lot. I'd say
malloc/read the whole file in and use a decrementing pointer to return the
previous character.
--
Andrew Duane Juniper Networks
978-589-0551 10 Technology Park Dr
adu...@juniper.net
In the last episode (Feb 11), Julian H. Stacey said:
Hi hackers@,
Do we have C libraries with reverse of getchar() [ maybe read() ]
fopen() [ maybe open() ] etc, to read from end of file toward beginning
? I dont see anything in the See Also sections. I'm not looking to
write, just
On Fri, 2011-02-11 at 22:32 +0100, Julian H. Stacey wrote:
Hi hackers@,
Do we have C libraries with reverse of getchar() [ maybe read()
] fopen() [ maybe open() ] etc, to read from end of file toward
beginning ?
`tail -r' will spit out lines of a file in reverse-order.
Maybe the source
Hi hackers@,
Do we have C libraries with reverse of getchar() [ maybe read()
] fopen() [ maybe open() ] etc, to read from end of file toward
beginning ? I dont see anything in the See Also sections. I'm not
looking to write, just read. I'm looking for something that returns
last char
On Fri, Feb 11, 2011 at 10:32:46PM +0100, Julian H. Stacey wrote:
Hi hackers@,
Do we have C libraries with reverse of getchar() [ maybe read()
] fopen() [ maybe open() ] etc, to read from end of file toward
beginning ? I dont see anything in the See Also sections. I'm not
looking to
Andrew Duane wrote:
I've never seen any such thing, but I've done similar things a
lot. I'd say malloc/read the whole file in and use a decrementing
pointer to return the previous character.
Thanks, but I'll need a loop too, as malloc(filesize()) would be
too big, as I omitted to say I'll be
6 matches
Mail list logo