当前位置: 技术问答>linux和unix
linux write 问题
来源: 互联网 发布时间:2016-09-20
本文导语: #include #include #include #include #include char buf[7]; int main() { int fd,size,nothing; int data0,data1; fd = open("test",O_CREAT |O_SYNC |O_RDWR ,0666); //|O_TRUNC if(fd
#include
#include
#include
#include
#include
char buf[7];
int main()
{
int fd,size,nothing;
int data0,data1;
fd = open("test",O_CREAT |O_SYNC |O_RDWR ,0666); //|O_TRUNC
if(fd
#include
#include
#include
#include
char buf[7];
int main()
{
int fd,size,nothing;
int data0,data1;
fd = open("test",O_CREAT |O_SYNC |O_RDWR ,0666); //|O_TRUNC
if(fd