r/C_Programming • • Jun 16 '26

The {fmt} library has added a C11 interface.

36 Upvotes

13 comments sorted by

View all comments

Show parent comment

0

u/EpochVanquisher Jun 18 '26

I will insert two copies of the same word and hopefully it'll be clearer for you.

Here, I’ll take a similar approach to my original comment.

You (the author of code exposing a variadic macro) need to hard-code the maximum number of arguments and then write a separate macro for each different number of arguments.

I thought it was pretty trivial to figure this out, but use of the general ‘you’ does trip up some non-native speakers.

3

u/za419 Jun 18 '26

But you're using it as an argument against being a client of code exposing a variadic macro. I agree, writing them is a pain in the ass, but that's not a reason to avoid using fmt.

1

u/EpochVanquisher Jun 18 '26

That’s not how I’m using it. I’m making a comment on the library implementation.