Skip to content
Snippets Groups Projects
Commit 69c5f21a authored by BeomSooHeo's avatar BeomSooHeo
Browse files

Update README.md

parent c745562b
Branches
No related tags found
No related merge requests found
......@@ -10,6 +10,25 @@
use fprintf with stderr stdout stdin & Redirection
### stdout, stdin, stderr
<p>
프로그램 실행시 프로그램과 실행환경 사이의 상호작용을 하기 위해서는 데이터의 상호교환이 필요할 것이다.
이때 양자를 연결시켜주고 서로 데이터를 주고 받을 수 있기 위한 통로가 필요한데, 이것을 스트림이라한다.
유닉스에서 동작하는 프로그램은 실행과 동시에 세 개의 스트림이 자동으로 열리는데,
stdin, stdout, stderr 이들을 표준 스트림이라하며 별다른 Redirection이 없다면<br><br>
stdin (standard input stream) -> 키보드로 입력을 받는다.<br><br>
stdout (standard output stream) -> 모니터로 출력한다.<br><br>
stderr (standard error stream) -> 모니터로 출력한다.<br><br>
### Redirection을 통한 파일 입출력
<p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment