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.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results