This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to add 4K of scratch space at the bottom of the stack using C instead of C++?
- From: "Yu-Cheng Chou" <cycchou at ucdavis dot edu>
- To: cygwin at cygwin dot com
- Date: Tue, 12 Jul 2005 15:55:53 -0700 (PDT)
- Subject: 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/