Liste des Groupes | Revenir à col misc |
On 3/3/25 4:31 PM, Scott Lurndal wrote:As I pointed out, sprintf and fprintf dont take structure pointers as an argument.Peter Flass <peter_flass@yahoo.com> writes:It's easy to kinda drift into that during development, youThe Natural Philosopher <tnp@invalid.invalid> wrote:>On 03/03/2025 19:19, rbowman wrote:>On Mon, 3 Mar 2025 15:24:04 +0000, The Natural Philosopher wrote:So do I but it gets unavoidable when toy are passing sixty plus
>On 03/03/2025 10:05, Niklas Karlsson wrote:>Some would probably get on your case for being profligate with vertical>
space... but honestly, it doesn't much matter with the kind of screen
real estate we have these days. I do agree that your style has
readability benefits.
Yes. Back in the day when I debugged with 80 column dot matrix
printouts, it got messy.
To day with collapsible blocks on a gui it's a lot easier
I still prefer statements that don't exceed 80 columns.
variables to a function.
Fortunately you can explicitly line wrap and the compiler don't care.
>
I would usually do one argument per line at that point.
If you're passing 60 arguments, you are not doing it right.
always think of ONE more thing you need to pass. However
stage two, you put all that crap in a struct and pass one
pointer. Each function can extract what it needs from
that struct and ignore the rest.
Les messages affichés proviennent d'usenet.