Path: csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Fri, 19 May 2017 13:58:08 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Some ideas about c? References: <87bmqp7utb.fsf@gmail.com> <8737c0ybuh.fsf@gmail.com> Date: Fri, 19 May 2017 19:58:08 +0100 Message-ID: <8760gweksf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:Vz8WFXhSuZb1aO7fXLD1U0gEBH4= MIME-Version: 1.0 Content-Type: text/plain Lines: 12 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-28Zj7zw/Yh0S9zlDGZZkhk5/VusDDB0uEjDy7r4CCg7jTbmFii2V/tnzx9mpZW7ELm5BNYrglzaGADm!I73VWEG4sbvvKbp27Yh7YnH9FZq7IB/s3s+SaP2KC5gTRfPCRoWyJlTmysKQRjJYYmRomJ4= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1635 Xref: csiph.com comp.lang.c:110406 scott@slp53.sl.home (Scott Lurndal) writes: > The program solves the original assignment: > > Write a program, that reads in a line from the console and then > echoes the same line to the console again. > > There is nothing there about 'infinite line length' explictly, and > even the C++ version using getline() can't handle every possible input, > eventually the std::string will hit a memory limitation. Weak