close « stdout « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » stdout » close 

1. How to buffer stdout until stdin is closed?    stackoverflow.com

I'm making myself familiar with C programming and want to write a program similar to expand. The command line tool first reads every input from stdin, processes it and ...

2. How to close stdout and stderr in C?    stackoverflow.com

I need to close stdout and stderr for one of my C program. How is it possible without exiting the program in execution?

3. How do stdin, stdout, stderr get closed?    stackoverflow.com

When you exit the program, how do these FILE* objects get closed and released?

4. Temporarily close stdout?    bytes.com

Joakim Hove [ This question is about closing/reopening/... of stdout - I hope that is on topic?] Hello, I have written a program in C; this programs uses an external proprietary library. When calling a certain function in the external library, the particular function writes a message to stdout. I am not particularly interested in this message, and would like to ...

5. closing stdout    bytes.com

On Oct 20, 6:38*pm, "Paul Edwards" Thanks. *Paul. In C99, you can do that. But I am not familar with C89, I can't promise C89 also allows ...

6. close && reopen stdout    forums.devshed.com

Other than wasted CPU cycles I don't think there is any danger. Since you have closed the handle to stdin, I presume the OS just dumps the puts() into the bit bucket. Obviously it doesn't crash since you got it to run properly. Is there any reason why you want to do it this way or just hacking? As for being ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.