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.
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.
This comment is hidden because it contains spoiler information about the solution