strncpy ()會將字符串src前n個字符拷貝到字符串dest。 不像strcpy(),strncpy()不會向dest追加結束 ... strncpy 的標准用法為:(手工寫上\0).
確定! 回上一頁