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.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果