Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Fri, 9 Jan 2004 00:26:10 -1000 From: Antonio Querubin X-X-Sender: tony AT tempura To: cygwin AT cygwin DOT com Subject: detecting runtime environment Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes I want a program (written in C) to behave a little differently depending on whether it's started in a cygwin window or started from a DOS/Windows command prompt window. Is there a standard method for detecting, at run-time, which environment a program was started in? -- 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/