OP solved the kata (while still returning a stack array from the function, remarkably)
Your solution returns a buffer which is allocated on the stack, what is an error in C. Your answer needs to be accessible for tests, so you need to return a pointer to a buffer which lives longer than just a call to the solution function.
Loading collection data...
OP solved the kata (while still returning a stack array from the function, remarkably)
Your solution returns a buffer which is allocated on the stack, what is an error in C. Your answer needs to be accessible for tests, so you need to return a pointer to a buffer which lives longer than just a call to the solution function.