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.
fuck off
cringe
Cute, but this is GCC, not C. Also the format of (n-1) using %d is not portable since %d requires an int but n is a (size_t).
so it won't work on smth like msvc
not standard -_-
I didn't know about asprintf :S Did malloc variant but it didn't work at cw.
2^64 ~= 1,84*10^19, so 20 chars enough (21 bytes with '\0'), use memory from stack with align (char num[32]), memory allocating in heap may be long and it uses memory not effective, becouse it operates with large blocks. BTW you forget to free memory that asprintf allocated, your function have memory leak.
#define _GNU_SOURCE
https://man7.org/linux/man-pages/man3/asprintf.3.html
As far as i can see asprintf() is not std-C
Nicely done !
#define _GNU_SOURCE is an unnecessary line :)