Here is a bit of C code that is part of something much bigger.
#include stdio.h
#include unistd.h
#define GIT_VERSION 1.23-dev
#define GIT_COUNT 73
#define GIT_ID daa3ab8
#define VERSION 1.23
main()
{
printf(\nThingy version %s (%s-%s-%s) (built %s, %s)\n\n, VERSION,
GIT_VERSION, GIT_COUNT,
It might be because you've got that flush call commented out?
Sent from my iPad
On 2 Jul 2011, at 17:32, Dirk Koopman d...@tobit.co.uk wrote:
Here is a bit of C code that is part of something much bigger.
#include stdio.h
#include unistd.h
#define GIT_VERSION 1.23-dev
#define GIT_COUNT
On Sat, Jul 02, 2011 at 05:32:38PM +0100, Dirk Koopman wrote:
But how come I get output at a shell prompt, and not down a pipe (or
a redirection either)? What special magic is occurring here?
If:
1. isatty() is true on the underlying fd of the FILE*
and:
2. The string contains \n
then
On 07/02/2011 10:04 AM, Andrew Suffield wrote:
On Sat, Jul 02, 2011 at 05:32:38PM +0100, Dirk Koopman wrote:
But how come I get output at a shell prompt, and not down a pipe (or
a redirection either)? What special magic is occurring here?
If:
1. isatty() is true on the underlying fd of the