stdin « input « 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 » input » stdin 

1. Read a line of input faster than fgets?    stackoverflow.com

I'm writing a program where performance is quite important, but not critical. Currently I am reading in text from a FILE* line by line and I use fgets to obtain each ...

2. C - Feof(stdin)-how to indicate end of input in Windows?    stackoverflow.com

    int x,y,m;
for(;;){
    m=scanf("%d %d",&x,&y);
    if (m!=2 || m==EOF){
        break;
    }
  ...

3. Loop For User Input    stackoverflow.com

I would like to write a program that keeps asking for user input until I break out of it with ctrl+D. Here is what I have:

char input[100];
while(input != EOF){
   ...

4. Problems with fgets not accepting input from stdin    cboard.cprogramming.com

Greetings, I've been tasked to create a menu driven program that accepts various inputs from the user and displays the data back to them. Relatively simple I'm sure but I'm having a problem with fgets not pausing for a string entry. Here is the code I've written so far: Code: void perform_menu_tasks( int e ) { if( e == 1 ) ...

5. How toC: process files in a loop taking input from stdin    forums.devshed.com

Hi I am new to C. I have to do an assignment where I have to take filenames as input and process each of them in a lop. What I am doing is taking the input in a space separated string (validations still incomplete) using strtok to retrieve individual filenames, putting them in an array, and processing each element of 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.