strcpy 只是复制字符串,但不限制复制的数量,很容易造成缓冲溢出。strncpy要安全一些。 strncpy能够选择一段字符输出,strcpy则不能。例如:. char name ...
確定! 回上一頁