Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site cwruecmp.UUCP Path: utzoo!linus!decvax!cwruecmp!sundar From: sundar@cwruecmp.UUCP (Sundar R. Iyengar) Newsgroups: net.sources Subject: Re: reading arbitrarily long strings from stdin Message-ID: <1364@cwruecmp.UUCP> Date: Fri, 27-Dec-85 18:52:13 EST Article-I.D.: cwruecmp.1364 Posted: Fri Dec 27 18:52:13 1985 Date-Received: Sat, 28-Dec-85 13:12:40 EST Reply-To: sundar@cwruecmp.UUCP (Sundar R. Iyengar) Organization: CWRU Dept. Computer Eng., Cleveland, OH Lines: 11 >From: davidson@sdcsvax.UUCP (J. Greg Davidson) >Subject: Re: Routine to read arbitrary lenght lines from a stdio file desc. Since you are recursively calling the "rdln" routine for each character, the length of a string you can read depends on the recursion depth. So the string cannot be "arbitrarily" long. On our VAX11/780 running 4.2BSD, the length must be <= 13036 characters. It runs out of stack space after these many calls. sri