用cat命令可以看 argv[1]文件的内容,在下图程序执行前为 hello world,执行后为 hello,原以为在 ftruncate后会输出 buf: hello,实际上执行没有输出 hello,这是为啥呢?