[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    Re: How to add 4K of scratch space at the bottom of the stack    using C   instead of C++?
From:       "Yu-Cheng Chou" <cycchou () ucdavis ! edu>
Date:       2005-07-12 22:55:53
Message-ID: 200507122255.j6CMtrLx022011 () citheronia ! ucdavis ! edu
[Download RAW message or body]


> > My program works in this way. However, after the cygwin1.dll was 
> > initialized, the I/O seemed to be redirected. How can I get my I/O
> > back?
> > I listed my codes below for reference.

> Does your CYGWIN environment variable include the string "tty"?

I set tty as CYGWIN's environment variable value, and the program works.
But the last new line character in the last printf() of foo() in 
module.dll doesn't work.
How to fix it?
Thanks

/* module.c */
#include <stdio.h>

int foo(int arg){
   printf("foo() is called in main.exe\n");
   printf("arg * 2 = %d\n", arg * 2);
   return arg * 2;
}


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic