detecting runtime environment

Antonio Querubin tony@lava.net
Fri Jan 9 10:28:00 GMT 2004


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/



More information about the Cygwin mailing list