作者loveflames (咕啾咕啾魔法陣)
看板C_and_CPP
標題Re: [問題] Linux系統呼叫
時間Sat Mar 18 10:29:05 2017
我猜你連動手寫都沒有,所以也就沒有什麼output
int fd = open("test.dat",O_RDONLY | O_NONBLOCK);
int len = read(fd,buf,sizeof(buf));
這兩個不用stdio.h
自己去找這兩個需要什麼header吧
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.199.42
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1489804148.A.C33.html
推 wtchen: 本來想給他點時間讓他補充想法,沒想到用站內信問板友 03/18 16:54
→ wtchen: 板規我看看怎麼補充.... 03/18 16:54
→ loveflames: 這篇一起刪吧,不然沒頭沒尾 03/18 17:01