上面的strncpy 会填写79 个char,而不仅仅是"abcdefgh" 本身。 strncpy 的标准用法为:(手工写上\0). strncpy(path, src, sizeof(path) - 1);
確定! 回上一頁