This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to add 4K of scratch space at the bottom of the stack using C instead of C++?


> > 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]