stdin « read « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » read » stdin 

1. Read from file or stdin - C    stackoverflow.com

I am writing a utility which accepts either a filename, or reads from stdin I would like to know the most robust / fastest way of checking to see if stdin exists ...

2. Are STDIN_FILENO and STDOUT_FILENO read only in c?    stackoverflow.com

fd = open("/dev/null", O_RDWR);
if (fd == -1) {
    ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
                  ...

3. reading stdin for key presses vs a redirected file    bytes.com

I'm trying to write a console program to exactly duplicate a much older dos-based program. This older program uses getch() to prompt a user for a response to a question. This program is also used in batch files where a file containing just the response would be redirected into the program so it wouldn't wait for user input. For example: program.exe ...

4. Problems/Suggestions with file being read from stdin and getting word split    forums.devshed.com

Hi, I'm really looking for a better solution than this one I pretty did myself after reading a lot (and 6 other different solutions) The problem I have to read a file via stdin and so I have to break it in words and put it in a binary tree and a lot of other stuff. The solution I'm using The ...

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.