unbuffered Questions

14

Solved

In the next code: #include <stdio.h> int main(void) { int c; while ((c=getchar())!= EOF) putchar(c); return 0; } I have to press Enter to print all the letters I entered with getc...
Garrott asked 25/11, 2009 at 17:19

3

I'm writing a python script that can read input through a pipe from another command like so batch_job | myparser My script myparser processes the output of batch_job and write to its own stdout...
Piracy asked 23/10, 2015 at 14:41

5

Solved

I'm looking to do unbuffered queries only on some requests. In MySQL I was doing this: $req = mysql_unbuffered_query('SELECT * FROM forum_topics ORDER BY (topic_id/topic_stick) DESC, topic_last_pos...
Larkins asked 9/1, 2014 at 15:21

1

Solved

I'm stuggeling with an issue with python. I used Python 2.7.13 and Python 3.6.0 on Red Hat Enterprise Linux Server release 7.1 (Maipo). In order to monitor the proccesses output, I want to use tail...
Carpophagous asked 7/11, 2017 at 14:14

5

Solved

Consider this little programm be compiled as application.exe #include <stdio.h> int main() { char str[100]; printf ("Hello, please type something\n"); scanf("%[^\n]s", &str); printf...
Aquiculture asked 8/9, 2016 at 10:51

4

Solved

Here is the description of my problem: I want to read a big file, about 6.3GB, all to memory using the read system call in C, but an error occurs. Here is the code: #include <stdio.h> #incl...
Floreneflorentia asked 16/7, 2016 at 7:17

3

Solved

Consider the following C program (test.c): #include <stdio.h> int main() { printf("string out 1\n"); fprintf(stderr, "string err 1\n"); getchar(); printf("string out 2\n"); fprintf(std...
Walters asked 11/3, 2013 at 13:6

5

Solved

In case of buffered stream it said in a book that it wait until the buffer is full to write back to the monitor. For example: cout << "hi"; What do they mean by "the buffer is full". c...
Vereen asked 9/5, 2012 at 14:53

2

Solved

My main intention was to make getchar return as soon as it gets a character instead of waiting for the ENTER key. I tried this int main() { setvbuf(stdin,NULL,_IONBF,0); getchar(); return 0; }...
Neologism asked 20/4, 2012 at 13:49

1

Solved

Correct me if I'm wrong, the only way to have unbuffered (doesn't output to .js) comments in CoffeeScript is # This is the only way to mute this single-line comments The ### buffers comments for...
Psittacosis asked 16/10, 2011 at 21:56

3

Solved

For the sake of education, and programming practice, I'd like to write a simple library that can handle raw keyboard input, and output to the terminal in 'real time'. I'd like to stick with ansi C...
Leasehold asked 30/10, 2009 at 3:50
1

© 2022 - 2024 — McMap. All rights reserved.