我想添加""到{"status":true}使字符串看起来像"{"status":"true"}". 如何在特定位置向字符串插入字符?
""
{"status":true}
"{"status":"true"}"
我试过了strncat(),但没有得到想要的结果。我读到您需要为此创建自己的函数。谁能给我举个例子?
strncat()
c string
c ×1
string ×1