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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Great resolution and easy to understand. Thank you!
Hey, I am still learning c and was wondering if you could use sprintf instead?
This comment is hidden because it contains spoiler information about the solution
Ha, didn't know about asprintf(), and overlooked it when looking at snprintf() manpage, thanks!
It is actually a very good solution because asprintf stops potential buffer overflowes.
Further read: https://stackoverflow.com/questions/12746885/why-use-asprintf-instead-of-sprintf