3 ms·
Right. Like I said, the reason to go to the (programming) effort is that I can make sure it valgrinds clean, which means (if I'm being moderately smart along t
by dllthomas 13y ago
Right. Like I said, the reason to go to the (programming) effort is that I can make sure it valgrinds clean, which means (if I'm being moderately smart along the way) that I'm not dropping things on the floor that I don't mean to during the program run when I still care about it. Adding a flag for "I don't care about valgrind, go ahead and exit" is then a tiny bit of extra programmer work to save the processor a bit of extra work each run; not sure it's worth it but not sure it's not.
- t1m 13y agoValgrind looks like an amazing tool. I am still a bit giddy to use a C with function prototypes, // style comments and enums, to be honest.
- dllthomas 13y agoValgrind and friends are great. splint has been useful, but needs c99 (and now c11) support. Tangential, but one thing I've recently taken to doing in my C is basically avoiding bare primitive types, preferring to wrap them in a single element struct. This means I can't pass, for instance, price where I mean quantity just because they're "both numbers".