Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site mcnc.mcnc.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!jnw
From: jnw@mcnc.UUCP (John White)
Newsgroups: net.sources.bugs
Subject: Re: shortshort way of reversing the lines in a file
Message-ID: <819@mcnc.mcnc.UUCP>
Date: Thu, 19-Sep-85 19:55:23 EDT
Article-I.D.: mcnc.819
Posted: Thu Sep 19 19:55:23 1985
Date-Received: Sat, 21-Sep-85 05:19:05 EDT
References: <822@lll-crg.UUCP> <427@dcl-cs.UUCP> <2436@watcgl.UUCP>
Distribution: net
Organization: Microelectronics Center of NC; RTP, NC
Lines: 11

> I found that the "shorter version" segemention faulted when
> reading the 50th line of a file (and I tried several several
> different files).  I haven't tried to run the problem down yet.
> Does anyone have any ideas?

I assume you are refering to the program with the routine that reads
a line into a local buffer, recurses, and prints the line. This routine
requires a buffer on the stack for each line of the file. If you have
a 1k buffer size on your machine and a 64k segment size, then you will
run out of memory at around 50 lines.
- John