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.
I believe the last sprintf call will write 0 outside of the allocated buffer.
It's added at first, but then removed by replacing the space char with 0.
Null-terminator for the resulting string. '\0' should be equivalent to 0 in this case.
Non-zero would be considered a valid pointer by the client code.
It shows me my version as deprecated and your one as approved. I suppose this is how it should be.
You may fork it if you want, although I'm not sure if there is any value in this attempt.
Apparently I can't reject my own translation, so I'll be grateful if someone rejected this for me.
Hello!
This is an abandoned attempt. I should probably delete it.
Haskell translation
Couldn't figure out how to make regex work in Haskell. I hope it doesn't really matter if solution isn't exactly "translated".