From mboxrd@z Thu Jan 1 00:00:00 1970 From: cowan@mercury.ccil.org (John Cowan) Date: Sat, 25 Feb 2012 15:39:59 -0500 Subject: [TUHS] why the leading under score added to function names? In-Reply-To: <4F492C43.3020602@fastmail.us> References: <201202221917.q1MJHSGw013561@freefriends.org> <20120223043021.GA72269@dereel.lemis.com> <4F492C43.3020602@fastmail.us> Message-ID: <20120225203959.GE29866@mercury.ccil.org> Random832 scripsit: > For instance, this is, according to Raymond Chen, why they added > WinMain rather than extending main (they didn't know if extensions to > main would be allowed). That doesn't sound very reasonable to me. When you link a Windows program, it still has a main() procedure provided by Windows which does setup and then invokes WinMain(). > so it's possible that MSVC's C library was indeed, to some small > degree, based on Unix. Without doubt. After all, there was no other source of C libraries before ANSI; compare the Whitesmiths library, which was "meticulously incompatibled". -- Samuel Johnson on playing the violin: John Cowan "Difficult do you call it, Sir? cowan at ccil.org I wish it were impossible." http://www.ccil.org/~cowan