Questions tagged «strdup»


5
strcpy与strdup
我读到的strcpy是复制字符串,并strdup返回一个指向新字符串的指针以复制该字符串。 您能否解释一下您喜欢使用strcpy哪种情况以及您喜欢使用哪种情况strdup?
74 c  strcpy  strdup 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.