Deutsch English Français Italiano |
<20240616123850.00002d93@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: Whaddaya think? Date: Sun, 16 Jun 2024 12:38:50 +0300 Organization: A noiseless patient Spider Lines: 37 Message-ID: <20240616123850.00002d93@yahoo.com> References: <666ded36$0$958$882e4bbb@reader.netnews.com> <20240616015649.000051a0@yahoo.com> <v4lm16$3s87h$4@dont-email.me> <v4lmso$3sl7n$1@dont-email.me> <v4lr0m$3tbpj$1@dont-email.me> <8734pd4g3s.fsf@nosuchdomain.example.com> <v4ltuj$3trj2$1@dont-email.me> <20240616111134.00001f18@yahoo.com> <v4ma0a$3vrne$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sun, 16 Jun 2024 11:38:33 +0200 (CEST) Injection-Info: dont-email.me; posting-host="803ce1cb02e96f5cc52a73edab1c8c37"; logging-data="4157539"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AYCOnudBgtb8RdiZpXRp8OL/z45fqHl4=" Cancel-Lock: sha1:uIkR772DVAUl3wmuzyvdovG0Uuc= X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32) Bytes: 2485 On Sun, 16 Jun 2024 11:07:22 +0200 Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > On 16.06.2024 10:11, Michael S wrote: > > > > Not sure what this code is supposed to do. > > Not sure what you're comment is supposed to tell me. > I hoped that after you would read the manual you will know. But it obviously didn't work out. So, I'd tell a little more: 1. It does not read one line of arbitrary length 2. There is more than one mistake 3. All mistakes seems to be caused by deep misconceptions about fgets() and realloc(). > > However it looks unlikely that it does what you meant for it to do. > > I recommend to read the [f*****g] manual. > > https://cplusplus.com/reference/cstdio/fgets/ > > https://cplusplus.com/reference/cstdlib/realloc/ > > I don't need the Web to access man pages. Thanks. > > Janis > May be not Web in general, but this particular site is more pleasant to read than typical *nix man. Besides, I don't know how it looks on your man page, but if it is similar to one in link below then apart from relevant info it contains few blah-blah paragraphs. https://www.man7.org/linux/man-pages/man3/fgets.3p.html