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.
当前正在显示可能无法访问的结果。
隐藏无法访问的结果当前正在显示可能无法访问的结果。
隐藏无法访问的结果