instead of allocating memory in called function it could be better to return required size on first call and do all operations on second call.
Log in to post a comment.