Deutsch English Français Italiano |
<va9r6e$t0r0$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: valgrind leak I can't find Date: Fri, 23 Aug 2024 12:18:38 +0100 Organization: A noiseless patient Spider Lines: 28 Message-ID: <va9r6e$t0r0$1@dont-email.me> References: <j8idnQlHTPZXZFv7nZ2dnZfqn_GdnZ2d@brightview.co.uk> <oKScnQbmXbeW5Fr7nZ2dnZfqn_GdnZ2d@brightview.co.uk> <C-20240823115550@ram.dialup.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 23 Aug 2024 13:18:38 +0200 (CEST) Injection-Info: dont-email.me; posting-host="683b51147fd3c95c7018a07e9bc19669"; logging-data="951136"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u/tfy+qsmGHy6gLA9dk3h" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:q4Jb6OwalR7DrlATZchjRQM13gc= In-Reply-To: <C-20240823115550@ram.dialup.fu-berlin.de> Content-Language: en-GB Bytes: 2313 On 23/08/2024 12:03, Stefan Ram wrote: > Mark Summerfield <mark@qtrac.eu> wrote or quoted: >> I don't want to post the code since it is just for me relearning C. > > It's totally your prerogative if you wanna keep your code > on the down-low. No need to spill the beans. > > But just to cut through the fog in your logic, your "since" reasoning > is a bit of a brain-bender: If I'm cranking out some code to sharpen > my C chops, that's no reason to bury it six feet under later on. > >> (I'm creating a tiny collections lib: Vec (of void*), VecStr, VecInt, >> SetInt, SetStr.) > > Yeah, for sure. But we got to wonder if these are really > meat-and-potatoes C problems . . . > > Scope out what C was cooked up for in the first place. Eyeball > those vintage UNIX source files: "find.c", "echo.c", "tar.c", > "ls.c", "zork.c", "tail.c", and all that noise. How many of > those kick off with a container library? > > What gnarly waves are you missing out on in efficient and > idiomatic C programming by thinking, "I'll use my container > library and write C like it's some Silicon Valley startup code!" So, what have you done with the real Stefan Ram?