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.
OK,thanks for your help.
Maybe not, can't free it here at codewars. So I only use it as a reminder to free everything I have allocated. Never use this style in my own projects. But then again, I'm truly no C guru.
But it's after the "return" statement. Does it really useful here?
Hello, and welcome!
It's a function to free the memory allocated to the pointer final by malloc : )
I am a new Cer,can you tell me the use for the "free(final)" here?
Thanks for your reply.The error is because of I have not call the "free".
Where is the problem? What result do you get by your code?
I cannot pass this test:
cr_assert_eq(strcmp(replaceNth("Vader said: No, I am your father!", 4, 'a', 'o'), "Vader said: No, I am your fother!"), 0);
On my computer,it's OK.I have no idea,anyone similar?
The web server reported a gateway time-out error.(JavaScript)
me too.