eof
How do you read scanf until EOF in C?
I h开发者_StackOverflow社区ave this but once it reaches the supposed EOF it just repeats the loop and scanf again.[详细]
2023-01-17 05:17 分类:问答With sendfile(), is it possible to tell when in_fd is at EOF?
Reading through the man page of the Linux system call sendfile, I am wondering whether it is possible for the calling program to know when in_fd is at EOF. Presumably, this could be signaled by a retu[详细]
2023-01-16 08:39 分类:问答`getchar()` gives the same output as the input string
I am confused by a program mentioned in K&R that uses getchar(). It gives the 开发者_如何学JAVAsame output as the input string:[详细]
2023-01-15 17:22 分类:问答C/C++ Determine Whether Files have been completely written
I have a directory (DIR_A) to dump from Server A t开发者_运维技巧o Server B which is expected to take a few weeks. DIR_A has the normal tree[详细]
2023-01-15 10:25 分类:问答How to make tclsh to ignore EOF?
At csh you can do set ignoreeof or at bash tou can do export ignoreeof=1 and this will make csh/bash to ignore EOF, i.e. it will not exit on Ctrl+D, or when it reaches the end or file.[详细]
2023-01-14 11:15 分类:问答Why is this program segfaulting?
I\'ve written a program called Mathtext. This program gives plain text \"style\" by shifting certain character ranges into Unicode ranges such as \'mathematical letterlike symbols\" to produce plain-t[详细]
2023-01-13 16:43 分类:问答Find the end of stream for cin & ifstream?
I\'m running myself through a C++ text book that I have as a refresher to C++ programming. One of the practice problems (without going into too much detail) wants me to define a function that can be p[详细]
2023-01-13 13:39 分类:问答Hibernate, c3p0, and Mysql: the java.io.EOFException
I\'m using Hibernate with MySQL and c3p0, and when the MySQL connection expires after 8 hours (wait_timeout), Hibernate is unable to reconnect and i get the following exception:[详细]
2023-01-11 17:34 分类:问答ANTLR no viable alternative at input '<EOF>'
I\'m still on the learning path with ANTLR.I\'ve built a grammar and for the most part it does what I expect, but I need it to be able to run silently (no output to stdout or stderr).[详细]
2023-01-08 15:30 分类:问答How to get boost::iostream to operate in a mode comparable to std::ios::binary?
I have the following question on boost::iostreams. If someone is familiar with writing filters, I would actually appreciate your advices / help.[详细]
2023-01-04 18:13 分类:问答