How can I make the system call write() print to the screen?

前端 未结 5 1445
故里飘歌
故里飘歌 2021-02-01 22:48

For my OS class I\'m supposed to implement Linux\'s cat using only system calls (no printf)

Reading this reference I found it being used to print to a file. I guess I sh

5条回答
  •  梦谈多话
    2021-02-01 23:32

    Your reference is incorrect. It's part of C++ and has nothing to do with your assignment. The correct reference is http://www.opengroup.org/onlinepubs/9699919799/functions/write.html

提交回复
热议问题