delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/12/18:56:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 12 Jul 2005 15:55:53 -0700 (PDT)
Message-Id: <200507122255.j6CMtrLx022011@citheronia.ucdavis.edu>
To: cygwin AT cygwin DOT com
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 AT ucdavis DOT edu>
X-Errors-To: cycchou AT magenta DOT ucdavis DOT edu
X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019