Date: Fri, 11 Feb 2011 23:05:55 +0100 From: "Julian H. Stacey" <jhs@berklix.com> To: hackers@freebsd.org Subject: Re: reverse of getchar() read() open() fopen() ? Message-ID: <201102112206.p1BM5ti6071257@fire.js.berklix.net> In-Reply-To: Your message "Fri, 11 Feb 2011 22:32:46 %2B0100." <201102112132.p1BLWkiP003000@fire.js.berklix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 in file as first etc, I'm not interested in wchars etc, > I could write some C functions, with seek etc & probably will, if > none exist, but no point if they already exist ? PS I'm not looking for a program that reverses chars in lines ( eg like my http://berklix.com/~jhs/src/bsd/jhs/bin/local/rev/ ), instead I'm wondering if we have functions that read binary backwards, \0 & \n not special. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102112206.p1BM5ti6071257>