-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The stdio is usually buffered. When I hit a breakpoint and there's a printf before the breakpoint, the printed string may still be in the buffer and I can not see it.
I know I can flush the stdio by adding some flush code in the program.
Without doing this, is there any way to tell GDB to flush the…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I work on a well-established, embedded C++ code base. We have been using a proprietary API to our filesystem. For better integration with third-party C libraries, we are currently in the process of implementing most of stdio.h and fcntl.h. I made what I thought was a non-controversial proposal…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For a particular piece of homework, I'm implementing a basic data storage system using sequential files under standard C, which cannot load more than 1 record at a time. So, the basic part is creating a new file where the results of whatever we do with the original records are stored. The previous…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
After spending a good while getting rb to work on a remote shell, I would like to get stdio / error logger messages on a remote shell, I have dug around changing group_leaders but it would seem to require changing the group_leader of all the running process, and my experiments have found that to be…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I got some problems with EOF and stdio. I have no idea what I am doing wrong. When I see an EOF in my program I clear the stdin and next round I try to read in a new line. The problem is: for some reason the getline function immediatly (from the second run always, the first works just as intended)…
>>> More