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

前端 未结 5 1444
故里飘歌
故里飘歌 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:21

    Write to the file descriptor for standard output or standard error (1 and 2 respectively).

提交回复
热议问题