Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Watch for any "use" keywords. Indeed, sorted() needs the Itertools crate.
by that time i didn't know about sprintf)
yeah,asprintf is not standard.should use malloc and so on.
IIUC if there are more arguments than required by format, the extraneous arguments are evaluated and ignored.
Ref: https://en.cppreference.com/w/c/io/fprintf
your
free
ing doesn't happen - it's after thereturn
asprintf
is not standardstatic size can be broken
*printf
needs%zu
forsize_t
in the last
sprintf
%i
must be%zu
instead :/strcat
spam is what happens when you don't know aboutsprintf
strcat
spam is what happens when you don't know aboutsprintf
static size can be broken
otherwise, one of the best per-the-standard solutions here
accessing
names[1]
if it's an array of length 1 is UBasprintf
is not standardnumber of
*printf
parameters not corresponding with number of parameters in input string is UBstatic size can be broken
1KiB on each new string is wasteful
asprintf
is not standardstatic size can be broken
wasting 2KB on each such string is wasteful...
Loading more items...