Hi,
I just installed cygwin on Windows XP. I used Visual Studio to compile a test
C program. If I were at the shell in cygwin, and typed this command:
$ date > tmp_file
The content of the file tmp_file in that directory would look something like this:
Mon Jul 27 01:22:25 PDT 2009
So when I compiled my program that looks something like below, and ran the .exe file at the prompt at the cygwin shell, the "date" command executes, the "tmp_file" got created with the correct info, but the C program hangs. I have to press <RETURN> for the program to end.
What causes this, and how do I fix this problem? Thanks.
Here's the samle of that command in the C function:
system ("date > tmp_file");