Skip to main content
10 events
when toggle format what by license comment
Apr 25 at 7:46 audit First answers
Apr 25 at 7:47
Apr 24 at 10:23 audit First answers
Apr 24 at 16:11
Apr 20 at 9:58 comment added chux @einpoklum It is spec'd in C99 and alluded to in C89.
Apr 20 at 9:31 comment added chux @einpoklum Since much sizing in C uses size_t, something like scanf("...%zn", ..., &sz) would allow direct saving into a size_t sz. Return value of printf() is not really a concern for this scanf() post.
Apr 20 at 8:41 comment added einpoklum dbush, are the size modifiers for %n a new thing, or is this C99 already?
Apr 20 at 8:40 comment added einpoklum @chux : "Too bad" <- remember the printf()-family functions return an int, anyway. So how would the size_t help you?
Apr 18 at 22:14 comment added chux To be clear, with or without a modifier, %n remains a pointer to a signed integer type. Too bad size_t is not directly possible, only the mysterious corresponding signed integer type to size_t.
Apr 18 at 20:24 vote accept timmy george
Apr 18 at 20:19 history edited dbush CC BY-SA 4.0
added 41 characters in body
Apr 18 at 20:07 history answered dbush CC BY-SA 4.0