Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Text editor project in C Date: Sat, 24 Apr 2021 14:21:19 -0700 Organization: None to speak of Lines: 23 Message-ID: <87r1izbcq8.fsf@nosuchdomain.example.com> References: <0bd2f6c0-0a8f-4072-9034-e3182fd7e707n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="d0f60bc4728ee022269368670533e0db"; logging-data="11864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18f9ZsvhxHkxvthrysZNEZa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:qdN5fmnIPTChAlY6VDbFAvADok4= sha1:afLXEfgXIWBY1Lc044sXPNCPWLs= Xref: csiph.com comp.lang.c++:79245 wij writes: > On Friday, 23 April 2021 at 00:58:41 UTC+8, jacobnavia wrote: >> Recently, somebody started a thread about how C wasn't a simple >> language. The excuse was a text editor project for a beginner. >> >> Attached is the source code for the 10th edition of Unix of the "ed" >> text editor, published by Brian Kernighan for his CS classes at >> Princeton in 2001. >> [1596 lines deleted] > > I just looked into the code deeper, quite tricky and old fassion. > No good for beginners, except several recurrsive method. Again, *please* don't quote the entire article when you post a followup. Just quote enough so that readers can understand the context. Nobody reading your followup wants to read that entire block of text -- so don't include it in your post. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */