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.
Sorry but this code is all bad. First of all, you are not checking if the input string contains character lesser than 'a', which can easily happen if the string would be corrupted. Then, you are making malloc to int* type-pointer, and whats actually worst, you are mallocing only 5 bytes, in case of longer inputs, 5 bytes are not enough to hold errors + slash + string len, so you will actually write final string without NULL termination.
This comment is hidden because it contains spoiler information about the solution