The main problem you're having is that strlen calculates the length of the string data already in the string you give it. out is not initialized when you pass it to strlen so the result is undefined.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results